aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/scripting/scr_file_handling.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2015-01-02 04:52:53 +0200
committerFilippos Karapetis2015-01-07 11:42:24 +0200
commit9f642074ba8e17aa23b01bcee82b2293fe84f8f1 (patch)
treeb6fb8b1dd23272d16484d994cdce7b5d7cf75a46 /engines/zvision/scripting/scr_file_handling.cpp
parent9420cc2faaa54a782084d7386be29e72d97ffcef (diff)
downloadscummvm-rg350-9f642074ba8e17aa23b01bcee82b2293fe84f8f1.tar.gz
scummvm-rg350-9f642074ba8e17aa23b01bcee82b2293fe84f8f1.tar.bz2
scummvm-rg350-9f642074ba8e17aa23b01bcee82b2293fe84f8f1.zip
ZVISION: Remove ActionRestoreGame and loading of r.svr (restart slot)
This is handled internally now, so r.svr isn't needed anymore
Diffstat (limited to 'engines/zvision/scripting/scr_file_handling.cpp')
-rw-r--r--engines/zvision/scripting/scr_file_handling.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/zvision/scripting/scr_file_handling.cpp b/engines/zvision/scripting/scr_file_handling.cpp
index 227c43557c..7856bf7b2e 100644
--- a/engines/zvision/scripting/scr_file_handling.cpp
+++ b/engines/zvision/scripting/scr_file_handling.cpp
@@ -270,7 +270,9 @@ void ScriptManager::parseResults(Common::SeekableReadStream &stream, Common::Lis
// Only used by Zork: Nemesis
actionList.push_back(new ActionRegion(_engine, slot, args));
} else if (act.matchString("restore_game", true)) {
- actionList.push_back(new ActionRestoreGame(_engine, slot, args));
+ // Only used by ZGI to load the restart game slot, r.svr.
+ _engine->getScriptManager()->reset();
+ _engine->getScriptManager()->changeLocation('g', 'a', 'r', 'y', 0);
} else if (act.matchString("rotate_to", true)) {
actionList.push_back(new ActionRotateTo(_engine, slot, args));
} else if (act.matchString("save_game", true)) {