diff options
Diffstat (limited to 'engines/agos/script_e1.cpp')
-rw-r--r-- | engines/agos/script_e1.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/engines/agos/script_e1.cpp b/engines/agos/script_e1.cpp index 8705755df6..9b572e347b 100644 --- a/engines/agos/script_e1.cpp +++ b/engines/agos/script_e1.cpp @@ -24,6 +24,7 @@ */ + #include "agos/agos.h" #include "agos/vga.h" @@ -564,7 +565,7 @@ void AGOSEngine_Elvira1::oe1_look() { lobjFunc(l, "You can see "); /* Show objects */ } if (r && (r->flags & 4) && levelOf(i) < 10000) { - quitGame(); + _quit = true; } } @@ -943,7 +944,7 @@ restart: windowPutChar(window, *message2); if (confirmYesOrNo(120, 62) == 0x7FFF) { - quitGame(); + _quit = true; } else { goto restart; } @@ -1052,11 +1053,11 @@ uint AGOSEngine::confirmYesOrNo(uint16 x, uint16 y) { ha->priority = 999; ha->window = 0; - while (!quit()) { + while (!_quit) { _lastHitArea = NULL; _lastHitArea3 = NULL; - while (!quit()) { + while (!_quit) { if (_lastHitArea3 != 0) break; delay(1); @@ -1101,11 +1102,11 @@ uint AGOSEngine::continueOrQuit() { ha->priority = 999; ha->window = 0; - while (!quit()) { + while (!_quit) { _lastHitArea = NULL; _lastHitArea3 = NULL; - while (!quit()) { + while (!_quit) { if (_lastHitArea3 != 0) break; delay(1); |