From bf03f41b15c81bab9ea3d8bbc3ff6a2b96a81dc0 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Tue, 13 Nov 2018 02:49:39 +0100 Subject: [PATCH] Core/Movement: MoveCirclePath will now add the owner's original position to the path the EnterCycle spline flag will remove that vertex later on --- src/server/game/Movement/MotionMaster.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/game/Movement/MotionMaster.cpp b/src/server/game/Movement/MotionMaster.cpp index 8ddd5f7d527..e19691e2dba 100644 --- a/src/server/game/Movement/MotionMaster.cpp +++ b/src/server/game/Movement/MotionMaster.cpp @@ -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;