Skip to content

Commit c924060

Browse files
authored
Creature position update fix (#274)
1 parent bd0b20c commit c924060

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/game/Object/Unit.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10090,7 +10090,10 @@ void Unit::InterruptMoving(bool forceSendStop /*=false*/)
1009010090
{
1009110091
Movement::Location loc = movespline->ComputePosition();
1009210092
movespline->_Interrupt();
10093-
Relocate(loc.x, loc.y, loc.z, loc.orientation);
10093+
if (GetTypeId() == TYPEID_PLAYER)
10094+
((Player*)this)->SetPosition(loc.x, loc.y, loc.z, loc.orientation);
10095+
else
10096+
GetMap()->CreatureRelocation((Creature*)this, loc.x, loc.y, loc.z, loc.orientation);
1009410097
isMoving = true;
1009510098
}
1009610099

0 commit comments

Comments
 (0)