aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'engines/zvision/scripting')
-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) {