diff options
author | Torbjörn Andersson | 2006-05-17 20:35:25 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-05-17 20:35:25 +0000 |
commit | 0099932d0d74665ec0e0e4f0ace6abe7b5a32cdd (patch) | |
tree | 6a256b519418aae1b9950f31522ffa7d313f084e /engines | |
parent | 4da20ba369f085f30546213cdd5d5ef2332a6150 (diff) | |
download | scummvm-rg350-0099932d0d74665ec0e0e4f0ace6abe7b5a32cdd.tar.gz scummvm-rg350-0099932d0d74665ec0e0e4f0ace6abe7b5a32cdd.tar.bz2 scummvm-rg350-0099932d0d74665ec0e0e4f0ace6abe7b5a32cdd.zip |
Loop the Kyra 3 animation indefinitely.
svn-id: r22502
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/kyra3.cpp | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/engines/kyra/kyra3.cpp b/engines/kyra/kyra3.cpp index d73d3d6e7b..040f3b4908 100644 --- a/engines/kyra/kyra3.cpp +++ b/engines/kyra/kyra3.cpp @@ -72,20 +72,31 @@ 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 < 29; ++i) { uint32 nextRun = _system->getMillis() + 3 * _tickLength; logo->displayFrame(i); _screen->updateScreen(); playMenuAudioFile(); delayUntil(nextRun); } + + while (1) { + for (int i = 29; i < 64; ++i) { + uint32 nextRun = _system->getMillis() + 3 * _tickLength; + logo->displayFrame(i); + _screen->updateScreen(); + playMenuAudioFile(); + delayUntil(nextRun); + } - for (int i = 64; i >= 29; --i) { - uint32 nextRun = _system->getMillis() + 3 * _tickLength; - logo->displayFrame(i); - _screen->updateScreen(); - playMenuAudioFile(); - delayUntil(nextRun); + for (int i = 64; i >= 29; --i) { + uint32 nextRun = _system->getMillis() + 3 * _tickLength; + logo->displayFrame(i); + _screen->updateScreen(); + playMenuAudioFile(); + delayUntil(nextRun); + } } delete [] pal; |