[Scummvm-cvs-logs] SF.net SVN: scummvm: [30991] scummvm/trunk/engines/saga/animation.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Thu Feb 28 01:17:51 CET 2008


Revision: 30991
          http://scummvm.svn.sourceforge.net/scummvm/?rev=30991&view=rev
Author:   thebluegr
Date:     2008-02-27 16:17:51 -0800 (Wed, 27 Feb 2008)

Log Message:
-----------
Added a workaround so that the mob of prisoners in Nimdok's chapter is shown correctly after a cutaway is shown

Modified Paths:
--------------
    scummvm/trunk/engines/saga/animation.cpp

Modified: scummvm/trunk/engines/saga/animation.cpp
===================================================================
--- scummvm/trunk/engines/saga/animation.cpp	2008-02-27 18:23:25 UTC (rev 30990)
+++ scummvm/trunk/engines/saga/animation.cpp	2008-02-28 00:17:51 UTC (rev 30991)
@@ -258,6 +258,16 @@
 
 		_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;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list