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

svn-id: r36120
This commit is contained in:
Paul Gilbert 2009-01-28 10:27:14 +00:00
parent b63d4a777d
commit 8315753dda

View File

@ -2654,11 +2654,13 @@ void HotspotTickHandlers::standardCharacterAnimHandler(Hotspot &h) {
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 @@ void HotspotTickHandlers::playerAnimHandler(Hotspot &h) {
case START_WALKING:
// Start the player walking to the given destination
h.setCoveredFlag(VB_INITIAL);
h.setOccupied(false);
// Reset the path finder / walking sequence