From e0aa34bc514183761c80362a6cbf2978b899b8e1 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 21 Jan 2007 14:23:32 +0000 Subject: Fixes implementation of o1_updateSceneAnimations. svn-id: r25149 --- engines/kyra/script_v1.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); } -- cgit v1.2.3