SHERLOCK: events delay quit event

This commit is contained in:
Martin Kiewitz 2015-06-08 21:56:32 +02:00
parent 3b07645991
commit b5f966ceb5

View File

@ -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();
}
}