From 7b3b333dd5b0bdb8a176d54571eb424ecec20bdc Mon Sep 17 00:00:00 2001 From: treeston Date: Wed, 31 Aug 2016 21:41:23 +0200 Subject: Core/Position: Allow implicit casting to G3D::Vector. Also, add a utility overload to MotionMaster. (cherry picked from commit 9f15482b849d7a77a4a0cc68f18aabb8ee6c58c9) --- src/server/game/Movement/MotionMaster.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/server/game/Movement/MotionMaster.cpp') 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(); -- cgit v1.2.3