[Scummvm-cvs-logs] SF.net SVN: scummvm:[42586] scummvm/branches/gsoc2009-draci/engines/draci/ animation.cpp

dkasak13 at users.sourceforge.net dkasak13 at users.sourceforge.net
Sat Jul 18 14:08:18 CEST 2009


Revision: 42586
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42586&view=rev
Author:   dkasak13
Date:     2009-07-18 12:08:18 +0000 (Sat, 18 Jul 2009)

Log Message:
-----------
Fixed bug which caused the dragon to be animated with the wrong Z coordinate for short periods of time when moved to a new location.

Modified Paths:
--------------
    scummvm/branches/gsoc2009-draci/engines/draci/animation.cpp

Modified: scummvm/branches/gsoc2009-draci/engines/draci/animation.cpp
===================================================================
--- scummvm/branches/gsoc2009-draci/engines/draci/animation.cpp	2009-07-18 05:21:01 UTC (rev 42585)
+++ scummvm/branches/gsoc2009-draci/engines/draci/animation.cpp	2009-07-18 12:08:18 UTC (rev 42586)
@@ -294,8 +294,8 @@
 		// If we find an animation out of order, reinsert it
 		if ((*next)->getZ() < (*cur)->getZ()) {
 
-			Animation *anim = *cur;
-			_animations.erase(cur);
+			Animation *anim = *next;
+			_animations.erase(next);
 
 			insertAnimation(anim);
 		}


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