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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Mon Aug 13 10:51:41 CEST 2007


Revision: 28581
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28581&view=rev
Author:   thebluegr
Date:     2007-08-13 01:51:40 -0700 (Mon, 13 Aug 2007)

Log Message:
-----------
When restarting an animation, make sure that the animation's current frame is set to 0. This fixes issues where replaying the same animation would lead to a crash (e.g. with Gorrister at the animal cages)

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

Modified: scummvm/trunk/engines/saga/animation.cpp
===================================================================
--- scummvm/trunk/engines/saga/animation.cpp	2007-08-13 07:55:47 UTC (rev 28580)
+++ scummvm/trunk/engines/saga/animation.cpp	2007-08-13 08:51:40 UTC (rev 28581)
@@ -454,6 +454,9 @@
 	}
 
 	if (anim->completed < anim->cycles) {
+		if (anim->currentFrame < 0)
+			anim->currentFrame = 0;
+
 		frame = anim->currentFrame;
 
 		// WORKAROUND for a buggy animation in IHNM. Animation 0 in scene 67 (the mob of angry prisoners) should


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