Skip to content

Commit

Permalink
GLK: FROTZ: Screen rendering after loading savegame from launcher
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Dec 20, 2018
1 parent d038d8f commit d9000d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions engines/glk/frotz/frotz.cpp
Expand Up @@ -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
Expand Down

0 comments on commit d9000d6

Please sign in to comment.