diff options
author | treeston <treeston.mmoc@gmail.com> | 2016-08-31 21:41:23 +0200 |
---|---|---|
committer | treeston <treeston.mmoc@gmail.com> | 2016-08-31 21:41:23 +0200 |
commit | 9f15482b849d7a77a4a0cc68f18aabb8ee6c58c9 (patch) | |
tree | f745dcdd9e2d6d013efed155c3c9e1c62b583456 /src/server/game/Movement/MotionMaster.cpp | |
parent | b7112d0fbe457043418415f45f68f159896477d4 (diff) |
Core/Position: Allow implicit casting to G3D::Vector. Also, add a utility overload to MotionMaster.
Diffstat (limited to 'src/server/game/Movement/MotionMaster.cpp')
-rw-r--r-- | src/server/game/Movement/MotionMaster.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Movement/MotionMaster.cpp b/src/server/game/Movement/MotionMaster.cpp index 26873451649..aab8db633ae 100644 --- a/src/server/game/Movement/MotionMaster.cpp +++ b/src/server/game/Movement/MotionMaster.cpp @@ -449,7 +449,11 @@ void MotionMaster::MoveCirclePath(float x, float y, float z, float radius, bool void MotionMaster::MoveSmoothPath(uint32 pointId, G3D::Vector3 const* pathPoints, size_t pathSize, bool walk) { Movement::PointsArray path(pathPoints, pathPoints + pathSize); + MoveSmoothPath(pointId, path, walk); +} +void MotionMaster::MoveSmoothPath(uint32 pointId, Movement::PointsArray const& path, bool walk) +{ Movement::MoveSplineInit init(_owner); init.MovebyPath(path); init.SetSmooth(); |