aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarisa-Chan2014-08-04 16:29:58 +0700
committerMarisa-Chan2014-08-04 16:29:58 +0700
commitfb62b9477b5a9d887eb3484d82a7ef67efb6bfa5 (patch)
treed2d78870ace1049c6c05e0a83b576256719f43d3
parent5a870100bd62ce3913bb4a3adb6bd12ce97f1675 (diff)
downloadscummvm-rg350-fb62b9477b5a9d887eb3484d82a7ef67efb6bfa5.tar.gz
scummvm-rg350-fb62b9477b5a9d887eb3484d82a7ef67efb6bfa5.tar.bz2
scummvm-rg350-fb62b9477b5a9d887eb3484d82a7ef67efb6bfa5.zip
ZVISION: Make controls processing breakeable.
-rw-r--r--engines/zvision/scripting/script_manager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/zvision/scripting/script_manager.cpp b/engines/zvision/scripting/script_manager.cpp
index 53fa5832d9..4dd51816a0 100644
--- a/engines/zvision/scripting/script_manager.cpp
+++ b/engines/zvision/scripting/script_manager.cpp
@@ -181,7 +181,8 @@ void ScriptManager::updateControls(uint deltaTimeMillis) {
}
for (ControlList::iterator iter = _activeControls->begin(); iter != _activeControls->end(); iter++)
- (*iter)->process(deltaTimeMillis);
+ if ( (*iter)->process(deltaTimeMillis) )
+ break;
}
void ScriptManager::checkPuzzleCriteria(Puzzle *puzzle, uint counter) {