diff options
author | Johannes Schickel | 2007-01-21 14:23:32 +0000 |
---|---|---|
committer | Johannes Schickel | 2007-01-21 14:23:32 +0000 |
commit | e0aa34bc514183761c80362a6cbf2978b899b8e1 (patch) | |
tree | a7f406bfde3d5a62d05eab569c6d4913f584b398 | |
parent | aed4ae10a78320d847542b18c10498ae1cd4567e (diff) | |
download | scummvm-rg350-e0aa34bc514183761c80362a6cbf2978b899b8e1.tar.gz scummvm-rg350-e0aa34bc514183761c80362a6cbf2978b899b8e1.tar.bz2 scummvm-rg350-e0aa34bc514183761c80362a6cbf2978b899b8e1.zip |
Fixes implementation of o1_updateSceneAnimations.
svn-id: r25149
-rw-r--r-- | engines/kyra/script_v1.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/script_v1.cpp b/engines/kyra/script_v1.cpp index f0052424f0..be556c7cd6 100644 --- a/engines/kyra/script_v1.cpp +++ b/engines/kyra/script_v1.cpp @@ -1130,7 +1130,8 @@ int KyraEngine::o1_preserveAllObjectBackgrounds(ScriptState *script) { int KyraEngine::o1_updateSceneAnimations(ScriptState *script) { debugC(3, kDebugLevelScriptFuncs, "o1_updateSceneAnimations(%p) (%d)", (const void *)script, stackPos(0)); - if (stackPos(0)) { + int times = stackPos(0); + while (times--) { _sprites->updateSceneAnims(); _animator->updateAllObjectShapes(); } |