aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/frotz
diff options
context:
space:
mode:
authorPaul Gilbert2018-12-19 20:34:39 -0800
committerPaul Gilbert2018-12-19 20:34:39 -0800
commitd9000d64a972aed9e88a48bd67ede8b55fdad076 (patch)
tree47a6d596019fe466c56a7318333eed6ccf744b6e /engines/glk/frotz
parentd038d8fcf1c6a8e1f367c0880c71107e132e0947 (diff)
downloadscummvm-rg350-d9000d64a972aed9e88a48bd67ede8b55fdad076.tar.gz
scummvm-rg350-d9000d64a972aed9e88a48bd67ede8b55fdad076.tar.bz2
scummvm-rg350-d9000d64a972aed9e88a48bd67ede8b55fdad076.zip
GLK: FROTZ: Screen rendering after loading savegame from launcher
Diffstat (limited to 'engines/glk/frotz')
-rw-r--r--engines/glk/frotz/frotz.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/glk/frotz/frotz.cpp b/engines/glk/frotz/frotz.cpp
index aaae44e670..c2341d4026 100644
--- a/engines/glk/frotz/frotz.cpp
+++ b/engines/glk/frotz/frotz.cpp
@@ -51,12 +51,12 @@ void Frotz::runGame(Common::SeekableReadStream *gameFile) {
// If save was selected from the launcher, handle loading it
int saveSlot = ConfMan.hasKey("save_slot") ? ConfMan.getInt("save_slot") : -1;
if (saveSlot != -1) {
- bool success = loadGameState(saveSlot).getCode() == Common::kNoError;
+ int loadResult = loadGameState(saveSlot).getCode() == Common::kNoError ? 2 : -1;
if (h_version <= V3)
- branch(success);
+ branch(loadResult);
else
- store(success);
+ store(loadResult);
}
// Game loop