aboutsummaryrefslogtreecommitdiff
path: root/engines/supernova
diff options
context:
space:
mode:
authorThierry Crozat2017-11-07 23:52:13 +0000
committerThierry Crozat2018-01-23 02:15:39 +0000
commit965b4ca3ded768c7f6f343f134fddbb0f8b19857 (patch)
treef205be12fe07213b484108a51a449ede90e58ca0 /engines/supernova
parent529a9c98119ab15a17a43dc8ee65ddf892d3eca2 (diff)
downloadscummvm-rg350-965b4ca3ded768c7f6f343f134fddbb0f8b19857.tar.gz
scummvm-rg350-965b4ca3ded768c7f6f343f134fddbb0f8b19857.tar.bz2
scummvm-rg350-965b4ca3ded768c7f6f343f134fddbb0f8b19857.zip
SUPERNOVA: Check shouldQuit to break from input loop
Diffstat (limited to 'engines/supernova')
-rw-r--r--engines/supernova/state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/supernova/state.cpp b/engines/supernova/state.cpp
index bc4eeeafdd..08c4f0efe4 100644
--- a/engines/supernova/state.cpp
+++ b/engines/supernova/state.cpp
@@ -1162,7 +1162,7 @@ Common::EventType GameManager::getMouseInput() {
}
void GameManager::getInput() {
- while (true) {
+ while (!_vm->shouldQuit()) {
_vm->updateEvents();
if (_mouseClicked || _keyPressed)
break;