Core/Movement: MoveCirclePath will now add the owner's original position to the path the EnterCycle spline flag will remove that vertex later on

This commit is contained in:
Ovahlord
2018-11-13 02:49:39 +01:00
parent a81a7da3bc
commit bf03f41b15

View File

@@ -488,6 +488,9 @@ void MotionMaster::MoveCirclePath(float x, float y, float z, float radius, bool
Movement::MoveSplineInit init(_owner);
// add the owner's current position as starting point as it gets removed after entering the cycle
init.Path().push_back(G3D::Vector3(_owner->GetPositionX(), _owner->GetPositionY(), _owner->GetPositionZ()));
for (uint8 i = 0; i < stepCount; angle += step, ++i)
{
G3D::Vector3 point;