Core/Movement: Do not launch pathfinding for splines turning on the spot

This commit is contained in:
Aokromes committed 2016-08-10 20:27:54 +02:00
1 parent 0a09a69ab0
commit cb4861a7ad
1 file changed
+1 -1
+1 -1
View File
@@ -16568,7 +16568,7 @@ void Unit::SetFacingToObject(WorldObject const* object)
/// @todo figure out under what conditions creature will move towards object instead of facing it where it currently is.
Movement::MoveSplineInit init(this);
init.MoveTo(GetPositionX(), GetPositionY(), GetPositionZMinusOffset());
init.MoveTo(GetPositionX(), GetPositionY(), GetPositionZMinusOffset(), false);
init.SetFacing(GetAngle(object)); // when on transport, GetAngle will still return global coordinates (and angle) that needs transforming
init.Launch();
}