aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2009-05-18 20:07:09 +0000
committerJohannes Schickel2009-05-18 20:07:09 +0000
commitcc250e002998bfff54553d55580b8bc73fe715e7 (patch)
tree33d0393b42025649ff8761418b6a68120e9912d6
parentb70bbcf3064e7b8f882d7287b02e3408b8179d88 (diff)
downloadscummvm-rg350-cc250e002998bfff54553d55580b8bc73fe715e7.tar.gz
scummvm-rg350-cc250e002998bfff54553d55580b8bc73fe715e7.tar.bz2
scummvm-rg350-cc250e002998bfff54553d55580b8bc73fe715e7.zip
Don't delay any longer, when engine is asked to quit.
svn-id: r40699
-rw-r--r--engines/kyra/lol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/lol.cpp b/engines/kyra/lol.cpp
index dbf3702b1f..31a25895a5 100644
--- a/engines/kyra/lol.cpp
+++ b/engines/kyra/lol.cpp
@@ -2073,7 +2073,7 @@ uint16 *LoLEngine::getCharacterOrMonsterProtectionAgainstItems(int id) {
void LoLEngine::delay(uint32 millis, bool cUpdate, bool iUpdate) {
int del = (int)(millis);
- while (del > 0) {
+ while (del > 0 && !shouldQuit()) {
if (cUpdate)
update();
if (iUpdate)