From 369f7b0d083cf78a8d00310f2e35013717ff09fc Mon Sep 17 00:00:00 2001 From: Christopher Page Date: Tue, 27 May 2008 20:15:36 +0000 Subject: AGI: Modified AGI Engine to shutdown without using system->quit svn-id: r32329 --- engines/agi/agi.cpp | 4 +--- 1 file changed, 1 insertion(+), 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) -- cgit v1.2.3