diff options
author | Christopher Page | 2008-07-13 22:24:55 +0000 |
---|---|---|
committer | Christopher Page | 2008-07-13 22:24:55 +0000 |
commit | c210f90a624549b905dce50be261cf54a3407ae5 (patch) | |
tree | 952689f766072c88d82cff8601d8d1843a185fee /engines/touche/menu.cpp | |
parent | 0175425109624a6dfc87bcfa1f26abfed839a1e3 (diff) | |
download | scummvm-rg350-c210f90a624549b905dce50be261cf54a3407ae5.tar.gz scummvm-rg350-c210f90a624549b905dce50be261cf54a3407ae5.tar.bz2 scummvm-rg350-c210f90a624549b905dce50be261cf54a3407ae5.zip |
TOUCHE works with the new GMM implementation
svn-id: r33046
Diffstat (limited to 'engines/touche/menu.cpp')
-rw-r--r-- | engines/touche/menu.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/touche/menu.cpp b/engines/touche/menu.cpp index 3e4d5226df..c3c14c61d3 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: - _quit = 1; + quitGame(); menuData->quit = true; break; case kActionTextOnly: @@ -398,7 +398,6 @@ void ToucheEngine::handleOptions(int forceDisplay) { case Common::EVENT_QUIT: menuData.quit = true; menuData.exit = true; - _quit = 1; break; case Common::EVENT_LBUTTONDOWN: button = menuData.findButtonUnderCursor(event.mouse.x, event.mouse.y); @@ -433,8 +432,9 @@ void ToucheEngine::handleOptions(int forceDisplay) { _system->delayMillis(10); } _fullRedrawCounter = 2; - if (!menuData.exit && _quit != 0) { - _quit = displayQuitDialog(); + if (!menuData.exit && quit()) { + if (displayQuitDialog()) + quitGame(); } } } |