[Scummvm-cvs-logs] SF.net SVN: scummvm:[45763] scummvm/trunk/engines/draci

spalek at users.sourceforge.net spalek at users.sourceforge.net
Sun Nov 8 22:35:19 CET 2009


Revision: 45763
          http://scummvm.svn.sourceforge.net/scummvm/?rev=45763&view=rev
Author:   spalek
Date:     2009-11-08 21:35:19 +0000 (Sun, 08 Nov 2009)

Log Message:
-----------
Removed old hack for cyclic animations.

This makes the hero's walk even smoother.

Modified Paths:
--------------
    scummvm/trunk/engines/draci/animation.cpp
    scummvm/trunk/engines/draci/script.cpp

Modified: scummvm/trunk/engines/draci/animation.cpp
===================================================================
--- scummvm/trunk/engines/draci/animation.cpp	2009-11-08 21:26:04 UTC (rev 45762)
+++ scummvm/trunk/engines/draci/animation.cpp	2009-11-08 21:35:19 UTC (rev 45763)
@@ -110,9 +110,6 @@
 			_shift.x += _relativeShifts[_currentFrame].x;
 			_shift.y += _relativeShifts[_currentFrame].y;
 			_currentFrame = nextFrameNum();
-			if (!_currentFrame) {
-				clearShift();	// TODO: don't do that, but rather let the animation fly away when needed.
-			}
 			_tick = _vm->_system->getMillis();
 
 			// Fetch new frame and mark it dirty

Modified: scummvm/trunk/engines/draci/script.cpp
===================================================================
--- scummvm/trunk/engines/draci/script.cpp	2009-11-08 21:26:04 UTC (rev 45762)
+++ scummvm/trunk/engines/draci/script.cpp	2009-11-08 21:35:19 UTC (rev 45763)
@@ -413,6 +413,8 @@
 
 	Animation *anim = _vm->_anims->getAnimation(animID);
 	if (!anim) {
+		// WORKAROUND:
+		//
 		// The original game files seem to contain errors, which I have
 		// verified by inspecting their source code.  They try to load
 		// each animation before starting it, but fail to anticipate


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