diff options
author | Christopher Page | 2008-06-24 21:15:30 +0000 |
---|---|---|
committer | Christopher Page | 2008-06-24 21:15:30 +0000 |
commit | f878820bbee1e7e4659ca601872674082334fa63 (patch) | |
tree | d1b05985a2b1758e8648fe86a64a5ef2562f1765 /engines/agi/op_cmd.cpp | |
parent | 65abece4c67c4fb574caac717fff24bfb5f31d69 (diff) | |
download | scummvm-rg350-f878820bbee1e7e4659ca601872674082334fa63.tar.gz scummvm-rg350-f878820bbee1e7e4659ca601872674082334fa63.tar.bz2 scummvm-rg350-f878820bbee1e7e4659ca601872674082334fa63.zip |
Created Global Main Menu Dialog. Made a uniform _quit flag for engines. So far agi, agos, and cine are now using the new _quit flag.
svn-id: r32770
Diffstat (limited to 'engines/agi/op_cmd.cpp')
-rw-r--r-- | engines/agi/op_cmd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp index 7ecedfbc8c..e3629699ca 100644 --- a/engines/agi/op_cmd.cpp +++ b/engines/agi/op_cmd.cpp @@ -1213,11 +1213,11 @@ cmd(quit) { g_sound->stopSound(); if (p0) { - game.quitProgNow = true; + g_agi->_quit = true; } else { if (g_agi->selectionBox (" Quit the game, or continue? \n\n\n", buttons) == 0) { - game.quitProgNow = true; + g_agi->_quit = true; } } } @@ -1231,7 +1231,7 @@ cmd(restart_game) { g_agi->selectionBox(" Restart game, or continue? \n\n\n", buttons); if (sel == 0) { - game.quitProgNow = 0xff; + g_agi->_quit = 0xff; g_agi->setflag(fRestartGame, true); g_agi->_menu->enableAll(); } @@ -1739,7 +1739,7 @@ int AgiEngine::runLogic(int n) { curLogic->cIP = curLogic->sIP; timerHack = 0; - while (ip < _game.logics[n].size && !_game.quitProgNow) { + while (ip < _game.logics[n].size && !g_agi->_quit) { if (_debug.enabled) { if (_debug.steps > 0) { if (_debug.logic0 || n) { |