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.
This commit is contained in:
Torbjörn Andersson 2013-01-04 02:12:21 +01:00
parent f7e4f4b354
commit e0b75c59ea
2 changed files with 0 additions and 4 deletions

View File

@ -279,7 +279,6 @@ bool MoviePlayer::handleInput() {
case Common::EVENT_RBUTTONDOWN:
return false;
case Common::EVENT_QUIT:
_vm->quitGame();
return false;
default:
break;

View File

@ -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;