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

cyx at users.sourceforge.net cyx at users.sourceforge.net
Sun Dec 2 03:33:50 CET 2007


Revision: 29688
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29688&view=rev
Author:   cyx
Date:     2007-12-01 18:33:50 -0800 (Sat, 01 Dec 2007)

Log Message:
-----------
don't call actorWalkStep if all an actor have to do is turning to a new direction (confirmed against disasm, seems specific to v8). fixes bug #1834814.

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

Modified: scummvm/trunk/engines/scumm/actor.cpp
===================================================================
--- scummvm/trunk/engines/scumm/actor.cpp	2007-12-02 01:17:51 UTC (rev 29687)
+++ scummvm/trunk/engines/scumm/actor.cpp	2007-12-02 02:33:50 UTC (rev 29688)
@@ -225,6 +225,8 @@
 	_speedy = newSpeedY;
 
 	if (_moving) {
+		if (_vm->_game.version == 8 && (_moving & MF_IN_LEG) == 0)
+			return;
 		calcMovementFactor(_walkdata.next);
 	}
 }


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