From 9128b00f591432a7d17cedfd7934b46b99acae30 Mon Sep 17 00:00:00 2001 From: Golrag Date: Thu, 13 Jul 2017 17:50:13 +0200 Subject: Core/Movement: Set CatmullRom only when flying when using MoveSmoothPath (#19903) --- src/server/game/Movement/MotionMaster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/server/game/Movement/MotionMaster.cpp b/src/server/game/Movement/MotionMaster.cpp index 6d60c96d72a..f0ba4fa0d0c 100644 --- a/src/server/game/Movement/MotionMaster.cpp +++ b/src/server/game/Movement/MotionMaster.cpp @@ -465,6 +465,7 @@ void MotionMaster::MoveSmoothPath(uint32 pointId, Position const* pathPoints, si { init.SetFly(); init.SetUncompressed(); + init.SetSmooth(); } Movement::PointsArray path; @@ -474,7 +475,6 @@ void MotionMaster::MoveSmoothPath(uint32 pointId, Position const* pathPoints, si return G3D::Vector3(point.GetPositionX(), point.GetPositionY(), point.GetPositionZ()); }); init.MovebyPath(path); - init.SetSmooth(); init.SetWalk(walk); init.Launch(); -- cgit v1.2.3