From cc250e002998bfff54553d55580b8bc73fe715e7 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Mon, 18 May 2009 20:07:09 +0000 Subject: Don't delay any longer, when engine is asked to quit. svn-id: r40699 --- engines/kyra/lol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3