Skip to content

Commit

Permalink
TOLTECS: Remove unnecessary calls to quitGame()
Browse files Browse the repository at this point in the history
Calling quitGame() simply creates a new quit event. There's no
need to do that when catching a quit event.
  • Loading branch information
Torbjörn Andersson committed Jan 4, 2013
1 parent f7e4f4b commit e0b75c5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion engines/toltecs/movie.cpp
Expand Up @@ -279,7 +279,6 @@ bool MoviePlayer::handleInput() {
case Common::EVENT_RBUTTONDOWN:
return false;
case Common::EVENT_QUIT:
_vm->quitGame();
return false;
default:
break;
Expand Down
3 changes: 0 additions & 3 deletions engines/toltecs/toltecs.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit e0b75c5

Please sign in to comment.