mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
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:
parent
b63d4a777d
commit
8315753dda
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user