diff options
author | treeston <treeston.mmoc@gmail.com> | 2016-08-31 21:41:23 +0200 |
---|---|---|
committer | joschiwald <joschiwald.trinity@gmail.com> | 2017-02-18 17:55:40 +0100 |
commit | 7b3b333dd5b0bdb8a176d54571eb424ecec20bdc (patch) | |
tree | e4d768883583adbfd1cc3f61f781fb098c6e8d14 /src/server/game/Movement/MotionMaster.cpp | |
parent | ebbcd601b95d05f631a22552e27223a04f0aa08f (diff) |
Core/Position: Allow implicit casting to G3D::Vector. Also, add a utility overload to MotionMaster.
(cherry picked from commit 9f15482b849d7a77a4a0cc68f18aabb8ee6c58c9)
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 6b12e1d625f..6756463283f 100644 --- a/src/server/game/Movement/MotionMaster.cpp +++ b/src/server/game/Movement/MotionMaster.cpp @@ -443,7 +443,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); if (_owner->CanFly()) init.SetUncompressed(); |