diff options
author | richiesams | 2013-08-05 19:09:54 -0500 |
---|---|---|
committer | richiesams | 2013-08-05 19:19:33 -0500 |
commit | 435ed16e0360440367ceb36b09e2116b3325a01b (patch) | |
tree | d51a370077568205da47bf548966b3c853252853 | |
parent | a31a97c520bbe49bf351b5178302a529f313a35e (diff) | |
download | scummvm-rg350-435ed16e0360440367ceb36b09e2116b3325a01b.tar.gz scummvm-rg350-435ed16e0360440367ceb36b09e2116b3325a01b.tar.bz2 scummvm-rg350-435ed16e0360440367ceb36b09e2116b3325a01b.zip |
ZVISION: Set the puzzle global variable after a Puzzle is completed
-rw-r--r-- | engines/zvision/script_manager.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/zvision/script_manager.cpp b/engines/zvision/script_manager.cpp index 395d45cff9..5b42895139 100644 --- a/engines/zvision/script_manager.cpp +++ b/engines/zvision/script_manager.cpp @@ -118,6 +118,9 @@ void ScriptManager::checkPuzzleCriteria() { for (Common::List<Common::SharedPtr<ResultAction> >::iterator resultIter = puzzle->resultActions.begin(); resultIter != puzzle->resultActions.end(); resultIter++) { (*resultIter)->execute(_engine); } + + // Set the puzzle as completed + setStateValue(puzzle->key, 1); } } } |