Skip to content

Commit

Permalink
WINTERMUTE: Respect EVENT_QUIT properly (and don't ask to quit anymore)
Browse files Browse the repository at this point in the history
  • Loading branch information
somaen committed Jul 27, 2013
1 parent b43bac6 commit 28b8537
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 6 additions & 3 deletions engines/wintermute/platform_osystem.cpp
Expand Up @@ -125,9 +125,12 @@ void BasePlatform::handleEvent(Common::Event *event) {
// _gameRef->AutoSaveOnExit();
// _gameRef->_quitting = true;
// }
if (_gameRef) {
_gameRef->onWindowClose();
}

// The engine CAN query for closing, but we disable it for now, as the EVENT_QUIT-event
// can't be stopped.
// if (_gameRef) {
// _gameRef->onWindowClose();
// }
break;
default:
// TODO: Do we care about any other events?
Expand Down
3 changes: 3 additions & 0 deletions engines/wintermute/wintermute.cpp
Expand Up @@ -250,6 +250,9 @@ int WintermuteEngine::messageLoop() {
}
prevTime = time;
}
if (shouldQuit()) {
break;
}
if (_game && _game->_quitting) {
break;
}
Expand Down

0 comments on commit 28b8537

Please sign in to comment.