aboutsummaryrefslogtreecommitdiff
path: root/engines/zvision/scripting/controls/save_control.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2015-01-09 01:09:53 +0200
committerFilippos Karapetis2015-01-09 01:09:53 +0200
commit79b92fe04698d3336f1d5232d4701133ff3ac10c (patch)
tree6511d61966875619b0b332294b42dc8907e99489 /engines/zvision/scripting/controls/save_control.cpp
parent345b33d9f0ea971e0ca69f1165d9d3b69d67984c (diff)
downloadscummvm-rg350-79b92fe04698d3336f1d5232d4701133ff3ac10c.tar.gz
scummvm-rg350-79b92fe04698d3336f1d5232d4701133ff3ac10c.tar.bz2
scummvm-rg350-79b92fe04698d3336f1d5232d4701133ff3ac10c.zip
ZVISION: Clean up save logic, and fix a thumbnail-related FIXME
This fixes the save game thumbnails when using the original save/load screens
Diffstat (limited to 'engines/zvision/scripting/controls/save_control.cpp')
-rw-r--r--engines/zvision/scripting/controls/save_control.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/zvision/scripting/controls/save_control.cpp b/engines/zvision/scripting/controls/save_control.cpp
index 6cedddffeb..2ac77c4776 100644
--- a/engines/zvision/scripting/controls/save_control.cpp
+++ b/engines/zvision/scripting/controls/save_control.cpp
@@ -102,9 +102,7 @@ bool SaveControl::process(uint32 deltaTimeInMillis) {
toSave = false;
if (toSave) {
- // FIXME: At this point, the screen shows the save control, so the save game thumbnails will always
- // show the save control
- _engine->getSaveManager()->saveGameBuffered(iter->saveId, inp->getText());
+ _engine->getSaveManager()->saveGame(iter->saveId, inp->getText(), true);
_engine->getRenderManager()->delayedMessage(_engine->getStringManager()->getTextLine(StringManager::ZVISION_STR_SAVED), 2000);
_engine->getScriptManager()->changeLocation(_engine->getScriptManager()->getLastMenuLocation());
}