diff options
Diffstat (limited to 'engines/cine/main_loop.cpp')
-rw-r--r-- | engines/cine/main_loop.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/engines/cine/main_loop.cpp b/engines/cine/main_loop.cpp index b42134eb0b..026a3181a8 100644 --- a/engines/cine/main_loop.cpp +++ b/engines/cine/main_loop.cpp @@ -61,9 +61,6 @@ static void processEvent(Common::Event &event) { break; case Common::EVENT_MOUSEMOVE: break; - case Common::EVENT_QUIT: - g_system->getEventManager()->pushEvent(Common::EVENT_QUIT); - break; case Common::EVENT_KEYDOWN: switch (event.kbd.keycode) { case Common::KEYCODE_RETURN: @@ -292,7 +289,7 @@ void CineEngine::mainLoop(int bootScriptIdx) { if ("quit"[menuCommandLen] == (char)di) { ++menuCommandLen; if (menuCommandLen == 4) { - g_system->getEventManager()->pushEvent(Common::EVENT_QUIT); + quitGame(); } } else { menuCommandLen = 0; @@ -301,7 +298,7 @@ void CineEngine::mainLoop(int bootScriptIdx) { manageEvents(); - } while (!_eventMan->shouldQuit() && _danKeysPressed != 7); + } while (!quit() && _danKeysPressed != 7); hideMouse(); g_sound->stopMusic(); |