[Scummvm-cvs-logs] SF.net SVN: scummvm: [33053] scummvm/trunk/engines/parallaction/walk.cpp
peres001 at users.sourceforge.net
peres001 at users.sourceforge.net
Mon Jul 14 02:21:06 CEST 2008
Revision: 33053
http://scummvm.svn.sourceforge.net/scummvm/?rev=33053&view=rev
Author: peres001
Date: 2008-07-13 17:21:05 -0700 (Sun, 13 Jul 2008)
Log Message:
-----------
Fixed regression in walk code. Now standing frames are correctly selected when the character encounters an unexpected blocking object in his/her path.
Modified Paths:
--------------
scummvm/trunk/engines/parallaction/walk.cpp
Modified: scummvm/trunk/engines/parallaction/walk.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/walk.cpp 2008-07-14 00:13:31 UTC (rev 33052)
+++ scummvm/trunk/engines/parallaction/walk.cpp 2008-07-14 00:21:05 UTC (rev 33053)
@@ -354,6 +354,7 @@
if (newPos == curPos) {
debugC(1, kDebugWalk, "walk was blocked by an unforeseen obstacle");
finalizeWalk(character);
+ targetPos = newPos; // when walking is interrupted, targetPos must be hacked so that a still frame can be selected
}
}
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