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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Tue Jun 12 22:36:10 CEST 2007


Revision: 27379
          http://scummvm.svn.sourceforge.net/scummvm/?rev=27379&view=rev
Author:   thebluegr
Date:     2007-06-12 13:36:08 -0700 (Tue, 12 Jun 2007)

Log Message:
-----------
Corrected actor walk speed when exiting from zones in IHNM

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

Modified: scummvm/trunk/engines/saga/actor.cpp
===================================================================
--- scummvm/trunk/engines/saga/actor.cpp	2007-06-12 19:45:39 UTC (rev 27378)
+++ scummvm/trunk/engines/saga/actor.cpp	2007-06-12 20:36:08 UTC (rev 27379)
@@ -1443,8 +1443,14 @@
 				actor->cycleWrap(frameRange->frameCount);
 				actor->_frameNumber = frameRange->frameIndex + actor->_actionCycle;
 			} else {
-				actor->_location.x += directionLUT[actor->_actionDirection][0] * 2;
-				actor->_location.y += directionLUT[actor->_actionDirection][1] * 2;
+				if (_vm->getGameType() == GType_ITE) {
+					actor->_location.x += directionLUT[actor->_actionDirection][0] * 2;
+					actor->_location.y += directionLUT[actor->_actionDirection][1] * 2;
+				} else {
+					// FIXME: The original does not multiply by 8 here, but we do
+					actor->_location.x += (directionLUT[actor->_actionDirection][0] * 8 * actor->_screenScale + 128) >> 8;
+					actor->_location.y += (directionLUT[actor->_actionDirection][1] * 8 * actor->_screenScale + 128) >> 8;
+				}
 
 				frameRange = getActorFrameRange(actor->_id, actor->_walkFrameSequence);
 				actor->_actionCycle++;


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