From 5f493ce618b41f0ca41b8507ed0ed3a6029bbcf5 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 28 Feb 2008 00:17:51 +0000 Subject: Added a workaround so that the mob of prisoners in Nimdok's chapter is shown correctly after a cutaway is shown svn-id: r30991 --- engines/saga/animation.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'engines') diff --git a/engines/saga/animation.cpp b/engines/saga/animation.cpp index 1b48274596..3a1e510529 100644 --- a/engines/saga/animation.cpp +++ b/engines/saga/animation.cpp @@ -258,6 +258,16 @@ void Anim::returnFromCutaway(void) { _vm->_scene->restoreScene(); + // WORKAROUND: Restart all scene animations before restoring them below + // This is mostly needed so that the animation of the mob of prisoners + // in Nimdok's chapter is shown correctly after the cutaway where the + // prisoner drops the jar on the ground + for (int i = 0; i < MAX_ANIMATIONS; i++) { + if (_animations[i] && _animations[i]->state == ANIM_PLAYING) { + _animations[i]->currentFrame = -1; // start from -1 (check Anim::load()) + } + } + // Restore the animations event.type = kEvTImmediate; event.code = kAnimEvent; -- cgit v1.2.3