From 435ed16e0360440367ceb36b09e2116b3325a01b Mon Sep 17 00:00:00 2001 From: richiesams Date: Mon, 5 Aug 2013 19:09:54 -0500 Subject: ZVISION: Set the puzzle global variable after a Puzzle is completed --- engines/zvision/script_manager.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'engines') 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 >::iterator resultIter = puzzle->resultActions.begin(); resultIter != puzzle->resultActions.end(); resultIter++) { (*resultIter)->execute(_engine); } + + // Set the puzzle as completed + setStateValue(puzzle->key, 1); } } } -- cgit v1.2.3