diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sherlock/events.cpp | 4 |
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(); } } |