mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-01 00:12:59 +00:00
SHERLOCK: events delay quit event
This commit is contained in:
parent
3b07645991
commit
b5f966ceb5
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user