aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/scripting/scr_file_handling.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2015-01-10 22:03:15 +0200
committerFilippos Karapetis2015-01-10 22:03:15 +0200
commit21e9007d80ee60e519896c330324e5e3a95f772f (patch)
tree037976cbb0e675ce4dad27dd4fcb87baadeb4c41 /engines/zvision/scripting/scr_file_handling.cpp
parent899cf4813c7e009e1dbee56be8ad10d20650cf10 (diff)
downloadscummvm-rg350-21e9007d80ee60e519896c330324e5e3a95f772f.tar.gz
scummvm-rg350-21e9007d80ee60e519896c330324e5e3a95f772f.tar.bz2
scummvm-rg350-21e9007d80ee60e519896c330324e5e3a95f772f.zip
Revert "ZVISION: Remove ActionRestoreGame and loading of r.svr (restart slot)"
This reverts commit 9f642074ba8e17aa23b01bcee82b2293fe84f8f1, as it broke the credits screen in ZGI. This has been rewritten to use the common save code
Diffstat (limited to 'engines/zvision/scripting/scr_file_handling.cpp')
-rw-r--r--engines/zvision/scripting/scr_file_handling.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/zvision/scripting/scr_file_handling.cpp b/engines/zvision/scripting/scr_file_handling.cpp
index 7856bf7b2e..b4da61a119 100644
--- a/engines/zvision/scripting/scr_file_handling.cpp
+++ b/engines/zvision/scripting/scr_file_handling.cpp
@@ -271,8 +271,8 @@ void ScriptManager::parseResults(Common::SeekableReadStream &stream, Common::Lis
actionList.push_back(new ActionRegion(_engine, slot, args));
} else if (act.matchString("restore_game", true)) {
// Only used by ZGI to load the restart game slot, r.svr.
- _engine->getScriptManager()->reset();
- _engine->getScriptManager()->changeLocation('g', 'a', 'r', 'y', 0);
+ // Used by the credits screen.
+ actionList.push_back(new ActionRestoreGame(_engine, slot, args));
} else if (act.matchString("rotate_to", true)) {
actionList.push_back(new ActionRotateTo(_engine, slot, args));
} else if (act.matchString("save_game", true)) {