From c51674200b6f3a77eccfe0fe5ef9d5dff14d46a8 Mon Sep 17 00:00:00 2001 From: Vladimir Menshakov Date: Tue, 10 Nov 2009 07:29:06 +0000 Subject: added special animation 0 case svn-id: r45800 --- engines/teenagent/scene.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index 4382655799..48e0df5fe5 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -672,8 +672,13 @@ bool Scene::processEventQueue() { break; case SceneEvent::kPlayAnimation: - debug(0, "playing animation %u in slot %u", current_event.animation, current_event.slot & 3); - playAnimation(current_event.slot & 3, current_event.animation, (current_event.slot & 0x80) != 0, (current_event.slot & 0x40) != 0, (current_event.slot & 0x20) != 0); + if (current_event.animation != 0) { + debug(0, "playing animation %u in slot %u", current_event.animation, current_event.slot & 3); + playAnimation(current_event.slot & 3, current_event.animation, (current_event.slot & 0x80) != 0, (current_event.slot & 0x40) != 0, (current_event.slot & 0x20) != 0); + } else { + debug(0, "cancelling animation in slot %u", current_event.slot & 3); + custom_animation[current_event.slot & 3].free(); + } current_event.clear(); break; -- cgit v1.2.3