diff options
Diffstat (limited to 'engines/zvision/scripting')
-rw-r--r-- | engines/zvision/scripting/script_manager.cpp | 4 | ||||
-rw-r--r-- | engines/zvision/scripting/script_manager.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/engines/zvision/scripting/script_manager.cpp b/engines/zvision/scripting/script_manager.cpp index fea3c2e199..d2165734b4 100644 --- a/engines/zvision/scripting/script_manager.cpp +++ b/engines/zvision/scripting/script_manager.cpp @@ -96,7 +96,7 @@ void ScriptManager::execScope(script_scope &scope) { for (PuzzleList::iterator PuzzleIter = scope._puzzles.begin(); PuzzleIter != scope._puzzles.end(); ++PuzzleIter) (*PuzzleIter)->addedBySetState = 0; - if (scope.proc_count < 2 || getStateValue(76)) { + if (scope.proc_count < 2 || getStateValue(StateKey_ExecScopeStyle)) { for (PuzzleList::iterator PuzzleIter = scope._puzzles.begin(); PuzzleIter != scope._puzzles.end(); ++PuzzleIter) checkPuzzleCriteria(*PuzzleIter, scope.proc_count); } else { @@ -738,6 +738,8 @@ void ScriptManager::deserialize(Common::SeekableReadStream *stream) { // Place for read prefs _engine->setRenderDelay(10); setStateValue(StateKey_RestoreFlag, 1); + + _engine->loadSettings(); } Location ScriptManager::getCurrentLocation() const { diff --git a/engines/zvision/scripting/script_manager.h b/engines/zvision/scripting/script_manager.h index 219cff9f45..3fcbad5fa4 100644 --- a/engines/zvision/scripting/script_manager.h +++ b/engines/zvision/scripting/script_manager.h @@ -86,6 +86,7 @@ enum StateKey { StateKey_ShowErrorDlg = 73, StateKey_DebugCheats = 74, StateKey_JapanFonts = 75, + StateKey_ExecScopeStyle = 76, StateKey_Brightness = 77, StateKey_EF9_R = 91, StateKey_EF9_G = 92, |