aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sherlock/events.cpp')
-rw-r--r--engines/sherlock/events.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/events.cpp b/engines/sherlock/events.cpp
index afd3602758..f7031f012e 100644
--- a/engines/sherlock/events.cpp
+++ b/engines/sherlock/events.cpp
@@ -210,7 +210,7 @@ bool Events::delay(uint32 time, bool interruptable) {
// For really short periods, simply delay by the desired amount
pollEvents();
g_system->delayMillis(time);
- bool result = !(interruptable && (kbHit() || _pressed));
+ bool result = !(interruptable && (kbHit() || _pressed || _vm->shouldQuit()));
clearEvents();
return result;
@@ -229,7 +229,7 @@ bool Events::delay(uint32 time, bool interruptable) {
}
}
- return true;
+ return !_vm->shouldQuit();
}
}