diff options
author | Paul Gilbert | 2015-10-16 22:37:01 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-10-16 22:37:01 -0400 |
commit | 28a8360896aa064917eabaaf0af8615c532de279 (patch) | |
tree | 09510ab27b6434fde7eb0dd93e794c7b344317a0 /engines | |
parent | f688d2806d02ad1e1a98a033774024c3d0727858 (diff) | |
download | scummvm-rg350-28a8360896aa064917eabaaf0af8615c532de279.tar.gz scummvm-rg350-28a8360896aa064917eabaaf0af8615c532de279.tar.bz2 scummvm-rg350-28a8360896aa064917eabaaf0af8615c532de279.zip |
SHERLOCK: Don't clear events after a non-interruptable delay
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sherlock/events.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sherlock/events.cpp b/engines/sherlock/events.cpp index 1cd6a06729..4b0b7dfb3f 100644 --- a/engines/sherlock/events.cpp +++ b/engines/sherlock/events.cpp @@ -350,7 +350,8 @@ bool Events::delay(uint32 time, bool interruptable) { g_system->delayMillis(time); bool result = !(interruptable && (kbHit() || _pressed || _vm->shouldQuit())); - clearEvents(); + if (interruptable) + clearEvents(); return result; } else { // For long periods go into a loop where we delay by 10ms at a time and then |