Core/Movement: Set CatmullRom only when flying when using MoveSmoothPath (#19903)

This commit is contained in:
Golrag
2017-07-13 17:50:13 +02:00
committed by Shauren
parent e5648c8d68
commit 9128b00f59
+1 -1
View File
@@ -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();