[Scummvm-cvs-logs] SF.net SVN: scummvm:[36120] scummvm/trunk/engines/lure/hotspots.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Wed Jan 28 11:27:14 CET 2009
Revision: 36120
http://scummvm.svn.sourceforge.net/scummvm/?rev=36120&view=rev
Author: dreammaster
Date: 2009-01-28 10:27:14 +0000 (Wed, 28 Jan 2009)
Log Message:
-----------
Bugfix to allow characters to start moving when some other object (such as a door) has marked part of the area the character is standing on as occupied
Modified Paths:
--------------
scummvm/trunk/engines/lure/hotspots.cpp
Modified: scummvm/trunk/engines/lure/hotspots.cpp
===================================================================
--- scummvm/trunk/engines/lure/hotspots.cpp 2009-01-28 10:08:42 UTC (rev 36119)
+++ scummvm/trunk/engines/lure/hotspots.cpp 2009-01-28 10:27:14 UTC (rev 36120)
@@ -2654,11 +2654,13 @@
break;
case START_WALKING:
- // Start the player walking to the given destination
+ // Start the character walking to the given destination
debugC(ERROR_DETAILED, kLureDebugAnimations,
"Hotspot standard character exec start walking => (%d,%d)",
h.destX(), h.destY());
+
+ h.setCoveredFlag(VB_INITIAL);
h.setOccupied(false);
pathFinder.reset(paths);
h.currentActions().top().setAction(PROCESSING_PATH);
@@ -2988,6 +2990,7 @@
case START_WALKING:
// Start the player walking to the given destination
+ h.setCoveredFlag(VB_INITIAL);
h.setOccupied(false);
// Reset the path finder / walking sequence
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