diff options
Diffstat (limited to 'engines/agos/script_s1.cpp')
-rw-r--r-- | engines/agos/script_s1.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/agos/script_s1.cpp b/engines/agos/script_s1.cpp index d07f682937..6183a3fb20 100644 --- a/engines/agos/script_s1.cpp +++ b/engines/agos/script_s1.cpp @@ -24,6 +24,7 @@ */ + #include "common/system.h" #include "agos/agos.h" @@ -338,10 +339,10 @@ void AGOSEngine_Simon1::os1_pauseGame() { break; } - while (!quit()) { + while (!_quit) { delay(1); if (_keyPressed.keycode == keyYes) - quitGame(); + _quit = true; else if (_keyPressed.keycode == keyNo) break; } |