diff options
author | Martin Kiewitz | 2016-02-01 16:13:19 +0100 |
---|---|---|
committer | Martin Kiewitz | 2016-02-01 16:13:19 +0100 |
commit | 6749f22981baa0d8d7b53711f2611cbe90b99e93 (patch) | |
tree | 5579dc8e2ade693fb60cf093c931c374fff4932b /engines/agi/saveload.cpp | |
parent | f86d68d214f01b49045b7bf40d932ad6f537c03c (diff) | |
download | scummvm-rg350-6749f22981baa0d8d7b53711f2611cbe90b99e93.tar.gz scummvm-rg350-6749f22981baa0d8d7b53711f2611cbe90b99e93.tar.bz2 scummvm-rg350-6749f22981baa0d8d7b53711f2611cbe90b99e93.zip |
AGI: Remove _game.hasPrompt, no longer needed
Diffstat (limited to 'engines/agi/saveload.cpp')
-rw-r--r-- | engines/agi/saveload.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/engines/agi/saveload.cpp b/engines/agi/saveload.cpp index f05655ea7b..90e42ca613 100644 --- a/engines/agi/saveload.cpp +++ b/engines/agi/saveload.cpp @@ -161,7 +161,7 @@ int AgiEngine::saveGame(const Common::String &fileName, const Common::String &de // (previous in-game-timer, in-game-timer is always enabled during the regular game, so need to save/load it) out->writeSint16BE((int16)_game.exitAllLogics); out->writeSint16BE((int16)_game.pictureShown); - out->writeSint16BE((int16)_game.hasPrompt); + out->writeSint16BE((int16)_text->promptIsEnabled()); // was "_game.hasPrompt", no longer needed out->writeSint16BE((int16)_game.gameFlags); if (_text->promptIsEnabled()) { @@ -486,8 +486,7 @@ int AgiEngine::loadGame(const Common::String &fileName, bool checkId) { in->readSint16BE(); // was clock enabled, no longer needed _game.exitAllLogics = in->readSint16BE(); in->readSint16BE(); // was _game.pictureShown - //_game.pictureShown = in->readSint16BE(); - _game.hasPrompt = in->readSint16BE(); + in->readSint16BE(); // was _game.hasPrompt, no longer needed _game.gameFlags = in->readSint16BE(); if (in->readSint16BE()) { _text->promptEnable(); @@ -510,9 +509,6 @@ int AgiEngine::loadGame(const Common::String &fileName, bool checkId) { int16 textBackground = in->readSint16BE(); _text->charAttrib_Set(textForeground, textBackground); - // game.hires - rebuilt from image stack - // game.sbuf - rebuilt from image stack - // game.ego_words - fixed by clean_input // game.num_ego_words - fixed by clean_input @@ -687,7 +683,6 @@ int AgiEngine::loadGame(const Common::String &fileName, bool checkId) { setFlag(VM_FLAG_RESTORE_JUST_RAN, true); - _game.hasPrompt = 0; // force input line repaint if necessary _words->clearEgoWords(); // don't delay anything right after restoring a game |