diff options
Diffstat (limited to 'engines/touche/menu.cpp')
-rw-r--r-- | engines/touche/menu.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/engines/touche/menu.cpp b/engines/touche/menu.cpp index 82490fca38..6d2d90a572 100644 --- a/engines/touche/menu.cpp +++ b/engines/touche/menu.cpp @@ -297,7 +297,7 @@ void ToucheEngine::handleMenuAction(void *menu, int actionId) { menuData->quit = true; break; case kActionQuitGame: - quitGame(); + _flagsTable[611] = 1; menuData->quit = true; break; case kActionTextOnly: @@ -395,10 +395,10 @@ void ToucheEngine::handleOptions(int forceDisplay) { while (_eventMan->pollEvent(event)) { const Button *button = 0; switch (event.type) { - case Common::EVENT_RTL: case Common::EVENT_QUIT: menuData.quit = true; menuData.exit = true; + _flagsTable[611] = 1; break; case Common::EVENT_LBUTTONDOWN: button = menuData.findButtonUnderCursor(event.mouse.x, event.mouse.y); @@ -433,9 +433,8 @@ void ToucheEngine::handleOptions(int forceDisplay) { _system->delayMillis(10); } _fullRedrawCounter = 2; - if (!menuData.exit && quit()) { - if (displayQuitDialog()) - quitGame(); + if (!menuData.exit && _flagsTable[611] != 0) { + _flagsTable[611] = displayQuitDialog(); } } } @@ -557,7 +556,6 @@ int ToucheEngine::displayQuitDialog() { Common::Event event; while (_eventMan->pollEvent(event)) { switch (event.type) { - case Common::EVENT_RTL: case Common::EVENT_QUIT: quitLoop = true; ret = 1; |