aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorrichiesams2013-08-05 19:09:54 -0500
committerrichiesams2013-08-05 19:19:33 -0500
commit435ed16e0360440367ceb36b09e2116b3325a01b (patch)
treed51a370077568205da47bf548966b3c853252853 /engines
parenta31a97c520bbe49bf351b5178302a529f313a35e (diff)
downloadscummvm-rg350-435ed16e0360440367ceb36b09e2116b3325a01b.tar.gz
scummvm-rg350-435ed16e0360440367ceb36b09e2116b3325a01b.tar.bz2
scummvm-rg350-435ed16e0360440367ceb36b09e2116b3325a01b.zip
ZVISION: Set the puzzle global variable after a Puzzle is completed
Diffstat (limited to 'engines')
-rw-r--r--engines/zvision/script_manager.cpp3
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);
}
}
}