Skip to content

Commit

Permalink
SHERLOCK: Don't clear events after a non-interruptable delay
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Oct 17, 2015
1 parent f688d28 commit 28a8360
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engines/sherlock/events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 28a8360

Please sign in to comment.