Skip to content

Commit

Permalink
Check _quitFlag during the first parts of the Kyra 3 main menu animat…
Browse files Browse the repository at this point in the history
…ion.

svn-id: r22587
  • Loading branch information
Torbjörn Andersson committed May 23, 2006
1 parent dafc2c8 commit 3a02503
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/kyra/kyra3.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 3a02503

Please sign in to comment.