aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-01 16:15:07 +0100
committerMartin Kiewitz2016-02-01 16:15:07 +0100
commit264222ec2984b5fd775d589c22f636d7a9baefc7 (patch)
tree28703c8faa81f650e9689c4eb8c66b6f6e058e5d /engines/agi
parent6749f22981baa0d8d7b53711f2611cbe90b99e93 (diff)
downloadscummvm-rg350-264222ec2984b5fd775d589c22f636d7a9baefc7.tar.gz
scummvm-rg350-264222ec2984b5fd775d589c22f636d7a9baefc7.tar.bz2
scummvm-rg350-264222ec2984b5fd775d589c22f636d7a9baefc7.zip
AGI: Change _game.exitAllLogics to boolean
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/agi.h2
-rw-r--r--engines/agi/saveload.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/agi/agi.h b/engines/agi/agi.h
index 58fb173575..e7ca9d336f 100644
--- a/engines/agi/agi.h
+++ b/engines/agi/agi.h
@@ -444,7 +444,7 @@ struct AgiGame {
// internal flags
bool playerControl; /**< player is in control */
- int exitAllLogics; /**< break cycle after new.room */
+ bool exitAllLogics; /**< break cycle after new.room */
bool pictureShown; /**< show.pic has been issued */
#define ID_AGDS 0x00000001
#define ID_AMIGA 0x00000002
diff --git a/engines/agi/saveload.cpp b/engines/agi/saveload.cpp
index 90e42ca613..3d67db7c7c 100644
--- a/engines/agi/saveload.cpp
+++ b/engines/agi/saveload.cpp
@@ -762,7 +762,7 @@ int AgiEngine::doLoad(int slot, bool showMessages) {
int result = loadGame(fileName);
if (result == errOK) {
- _game.exitAllLogics = 1;
+ _game.exitAllLogics = true;
_menu->itemEnableAll();
} else {
if (showMessages)
@@ -1010,7 +1010,7 @@ void AgiEngine::checkQuickLoad() {
_sound->stopSound();
if (loadGame(saveNameBuffer, false) == errOK) { // Do not check game id
- _game.exitAllLogics = 1;
+ _game.exitAllLogics = true;
_menu->itemEnableAll();
}
}
@@ -1023,7 +1023,7 @@ Common::Error AgiEngine::loadGameState(int slot) {
_sound->stopSound();
if (loadGame(saveLoadSlot) == errOK) {
- _game.exitAllLogics = 1;
+ _game.exitAllLogics = true;
_menu->itemEnableAll();
return Common::kNoError;
} else {