aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2008-02-28 00:17:51 +0000
committerFilippos Karapetis2008-02-28 00:17:51 +0000
commit5f493ce618b41f0ca41b8507ed0ed3a6029bbcf5 (patch)
treecb4992e0a8f7d77b85dace404b5fb68d77c83d38 /engines
parent99a5d115449123358342062e60c84f55f9448104 (diff)
downloadscummvm-rg350-5f493ce618b41f0ca41b8507ed0ed3a6029bbcf5.tar.gz
scummvm-rg350-5f493ce618b41f0ca41b8507ed0ed3a6029bbcf5.tar.bz2
scummvm-rg350-5f493ce618b41f0ca41b8507ed0ed3a6029bbcf5.zip
Added a workaround so that the mob of prisoners in Nimdok's chapter is shown correctly after a cutaway is shown
svn-id: r30991
Diffstat (limited to 'engines')
-rw-r--r--engines/saga/animation.cpp10
1 files changed, 10 insertions, 0 deletions
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;