aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-05-23 20:10:01 +0000
committerTorbjörn Andersson2006-05-23 20:10:01 +0000
commit3a025038da6d351789d5daf29e4751678c47fed1 (patch)
tree257d81a9752938b3321b30d610b711e1c984be0f
parentdafc2c8cebe9e4f95938584fac57864d57932e4a (diff)
downloadscummvm-rg350-3a025038da6d351789d5daf29e4751678c47fed1.tar.gz
scummvm-rg350-3a025038da6d351789d5daf29e4751678c47fed1.tar.bz2
scummvm-rg350-3a025038da6d351789d5daf29e4751678c47fed1.zip
Check _quitFlag during the first parts of the Kyra 3 main menu animation.
svn-id: r22587
-rw-r--r--engines/kyra/kyra3.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/kyra3.cpp b/engines/kyra/kyra3.cpp
index 4ae8bcda1d..79d65b5d17 100644
--- a/engines/kyra/kyra3.cpp
+++ b/engines/kyra/kyra3.cpp
@@ -111,14 +111,14 @@ int KyraEngine_v3::go() {
logo->setX(0); logo->setY(0);
logo->setDrawPage(0);
- for (int i = 0; i < 64; ++i) {
+ for (int i = 0; i < 64 && !_quitFlag; ++i) {
uint32 nextRun = _system->getMillis() + 3 * _tickLength;
logo->displayFrame(i);
_screen->updateScreen();
delayUntil(nextRun);
}
- for (int i = 64; i > 29; --i) {
+ for (int i = 64; i > 29 && !_quitFlag; --i) {
uint32 nextRun = _system->getMillis() + 3 * _tickLength;
logo->displayFrame(i);
_screen->updateScreen();