aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Page2008-05-27 20:15:36 +0000
committerChristopher Page2008-05-27 20:15:36 +0000
commit369f7b0d083cf78a8d00310f2e35013717ff09fc (patch)
tree4f363a9d9baa8720fc6ac29da51d34677638c1e7
parente41bd1eae8a15ea28237b090a833b94ca68c39ad (diff)
downloadscummvm-rg350-369f7b0d083cf78a8d00310f2e35013717ff09fc.tar.gz
scummvm-rg350-369f7b0d083cf78a8d00310f2e35013717ff09fc.tar.bz2
scummvm-rg350-369f7b0d083cf78a8d00310f2e35013717ff09fc.zip
AGI: Modified AGI Engine to shutdown without using system->quit
svn-id: r32329
-rw-r--r--engines/agi/agi.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp
index 3e0987bc18..9d88dd73ef 100644
--- a/engines/agi/agi.cpp
+++ b/engines/agi/agi.cpp
@@ -62,9 +62,7 @@ void AgiEngine::processEvents() {
while (_eventMan->pollEvent(event)) {
switch (event.type) {
case Common::EVENT_QUIT:
- _gfx->deinitVideo();
- _gfx->deinitMachine();
- _system->quit();
+ _game.quitProgNow = true;
break;
case Common::EVENT_PREDICTIVE_DIALOG:
if (_predictiveDialogRunning)