Fix bug #2721940: "AGI: Gold Rush! Restart Option differs from original"

svn-id: r41243
This commit is contained in:
Eugene Sandulenko 2009-06-06 17:40:56 +00:00
parent 3ba873c72b
commit 26d8b2bb72
8 changed files with 17 additions and 17 deletions

View file

@ -1242,7 +1242,7 @@ cmd(restart_game) {
g_agi->selectionBox(" Restart game, or continue? \n\n\n", buttons);
if (sel == 0) {
g_agi->restartGame = true;
g_agi->_restartGame = true;
g_agi->setflag(fRestartGame, true);
g_agi->_menu->enableAll();
}
@ -1346,7 +1346,7 @@ cmd(get_string) {
do {
g_agi->mainCycle();
} while (game.inputMode == INPUT_GETSTRING && !(g_agi->shouldQuit() || g_agi->restartGame));
} while (game.inputMode == INPUT_GETSTRING && !(g_agi->shouldQuit() || g_agi->_restartGame));
}
cmd(get_num) {
@ -1366,7 +1366,7 @@ cmd(get_num) {
do {
g_agi->mainCycle();
} while (game.inputMode == INPUT_GETSTRING && !(g_agi->shouldQuit() || g_agi->restartGame));
} while (game.inputMode == INPUT_GETSTRING && !(g_agi->shouldQuit() || g_agi->_restartGame));
_v[p1] = atoi(game.strings[MAX_STRINGS]);
@ -1770,7 +1770,7 @@ int AgiEngine::runLogic(int n) {
curLogic->cIP = curLogic->sIP;
timerHack = 0;
while (ip < _game.logics[n].size && !(shouldQuit() || restartGame)) {
while (ip < _game.logics[n].size && !(shouldQuit() || _restartGame)) {
if (_debug.enabled) {
if (_debug.steps > 0) {
if (_debug.logic0 || n) {