diff options
author | Paul Gilbert | 2017-08-06 23:02:55 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-08-06 23:02:55 -0400 |
commit | 27e141eaf4686a652c3a196263e64d082702a2cb (patch) | |
tree | dbf11a09797fe9939f028314a7fa64403e6a0c63 | |
parent | ed04ef492994549188b98be0bae42bc32313b967 (diff) | |
download | scummvm-rg350-27e141eaf4686a652c3a196263e64d082702a2cb.tar.gz scummvm-rg350-27e141eaf4686a652c3a196263e64d082702a2cb.tar.bz2 scummvm-rg350-27e141eaf4686a652c3a196263e64d082702a2cb.zip |
VOYEUR: Fix exiting game from the VCR screen
-rw-r--r-- | engines/voyeur/events.cpp | 2 | ||||
-rw-r--r-- | engines/voyeur/voyeur_game.cpp | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/engines/voyeur/events.cpp b/engines/voyeur/events.cpp index 020fe4b692..ae7e300979 100644 --- a/engines/voyeur/events.cpp +++ b/engines/voyeur/events.cpp @@ -245,7 +245,7 @@ void EventsManager::pollEvents() { checkForNextFrameCounter(); Common::Event event; - while (g_system->getEventManager()->pollEvent(event)) { + while (g_system->getEventManager()->pollEvent(event) && !_vm->shouldQuit()) { // Handle keypress switch (event.type) { case Common::EVENT_QUIT: diff --git a/engines/voyeur/voyeur_game.cpp b/engines/voyeur/voyeur_game.cpp index 2c84a4c471..7ffba7f338 100644 --- a/engines/voyeur/voyeur_game.cpp +++ b/engines/voyeur/voyeur_game.cpp @@ -61,6 +61,8 @@ void VoyeurEngine::playStamp() { switch (_voy->_playStampMode) { case 5: buttonId = _mainThread->doInterface(); + if (shouldQuit()) + return; if (buttonId == -2) { switch (_mainThread->doApt()) { @@ -647,6 +649,9 @@ void VoyeurEngine::reviewTape() { } while (!shouldQuit() && (!_eventsManager->_mouseClicked || foundIndex == -1)); + if (shouldQuit()) + return; + newY = _eventsManager->getMousePos().y; _voy->_fadingType = 0; _voy->_viewBounds = nullptr; |