From e0b75c59ea62e309f537f1000f9289ef91b40d22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B6rn=20Andersson?= Date: Fri, 4 Jan 2013 02:12:21 +0100 Subject: [PATCH] TOLTECS: Remove unnecessary calls to quitGame() Calling quitGame() simply creates a new quit event. There's no need to do that when catching a quit event. --- engines/toltecs/movie.cpp | 1 - engines/toltecs/toltecs.cpp | 3 --- 2 files changed, 4 deletions(-) diff --git a/engines/toltecs/movie.cpp b/engines/toltecs/movie.cpp index 69303830f82..576890f7038 100644 --- a/engines/toltecs/movie.cpp +++ b/engines/toltecs/movie.cpp @@ -279,7 +279,6 @@ bool MoviePlayer::handleInput() { case Common::EVENT_RBUTTONDOWN: return false; case Common::EVENT_QUIT: - _vm->quitGame(); return false; default: break; diff --git a/engines/toltecs/toltecs.cpp b/engines/toltecs/toltecs.cpp index 86b2474d9da..0e71bd88f9a 100644 --- a/engines/toltecs/toltecs.cpp +++ b/engines/toltecs/toltecs.cpp @@ -354,9 +354,6 @@ void ToltecsEngine::updateInput() { case Common::EVENT_KEYUP: _keyState.reset(); break; - case Common::EVENT_QUIT: - quitGame(); - break; case Common::EVENT_MOUSEMOVE: _mouseX = event.mouse.x; _mouseY = event.mouse.y;