diff options
author | Paul Gilbert | 2014-09-05 21:39:10 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-09-05 21:39:10 -0400 |
commit | 2942f93ed5c884fdd3843ff56b6a2688fdb780dc (patch) | |
tree | 1670f303d235b1cc45b160cdd3fba124686fa931 | |
parent | 350cd83050c5022296b31f2228d0d56e36b413bd (diff) | |
download | scummvm-rg350-2942f93ed5c884fdd3843ff56b6a2688fdb780dc.tar.gz scummvm-rg350-2942f93ed5c884fdd3843ff56b6a2688fdb780dc.tar.bz2 scummvm-rg350-2942f93ed5c884fdd3843ff56b6a2688fdb780dc.zip |
MADS: Fix exiting the game
-rw-r--r-- | engines/mads/mads.cpp | 3 | ||||
-rw-r--r-- | engines/mads/nebular/menu_nebular.cpp | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/engines/mads/mads.cpp b/engines/mads/mads.cpp index 59eec40bcc..6c1b436e3b 100644 --- a/engines/mads/mads.cpp +++ b/engines/mads/mads.cpp @@ -103,9 +103,6 @@ Common::Error MADSEngine::run() { // Run the game _game->run(); - // Dummy loop to keep application active - _events->delay(9999); - return Common::kNoError; } diff --git a/engines/mads/nebular/menu_nebular.cpp b/engines/mads/nebular/menu_nebular.cpp index 05d1954515..e29e9ff954 100644 --- a/engines/mads/nebular/menu_nebular.cpp +++ b/engines/mads/nebular/menu_nebular.cpp @@ -405,6 +405,7 @@ void AdvertView::show() { events.setEventTarget(nullptr); _vm->quitGame(); + events.pollEvents(); } bool AdvertView::onEvent(Common::Event &event) { |