diff options
| author | Kittnz <Kittnz@users.noreply.github.com> | 2017-12-23 16:12:24 +0100 | 
|---|---|---|
| committer | jackpoz <giacomopoz@gmail.com> | 2017-12-23 16:12:24 +0100 | 
| commit | cd88406de9467127e988e4b0f7e2ba0ec787636b (patch) | |
| tree | 376688b793de94e1c5f68d743986d76d264ed191 /src/server/game/Movement/MotionMaster.cpp | |
| parent | d3d003d69e91fb9b019a06b0402acebae5d6d250 (diff) | |
Core/Movement: Add MovePoint with facing (#20779)
Diffstat (limited to 'src/server/game/Movement/MotionMaster.cpp')
| -rw-r--r-- | src/server/game/Movement/MotionMaster.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/server/game/Movement/MotionMaster.cpp b/src/server/game/Movement/MotionMaster.cpp index d17b7fb8a48..86487072b3b 100644 --- a/src/server/game/Movement/MotionMaster.cpp +++ b/src/server/game/Movement/MotionMaster.cpp @@ -327,18 +327,18 @@ void MotionMaster::MoveFleeing(Unit* enemy, uint32 time)      }  } -void MotionMaster::MovePoint(uint32 id, float x, float y, float z, bool generatePath) +void MotionMaster::MovePoint(uint32 id, float x, float y, float z, bool generatePath, Optional<float> finalOrient)  {      if (_owner->GetTypeId() == TYPEID_PLAYER)      {          TC_LOG_DEBUG("misc", "Player (GUID: %u) targeted point (Id: %u X: %f Y: %f Z: %f).", _owner->GetGUID().GetCounter(), id, x, y, z); -        Mutate(new PointMovementGenerator<Player>(id, x, y, z, generatePath), MOTION_SLOT_ACTIVE); +        Mutate(new PointMovementGenerator<Player>(id, x, y, z, generatePath, 0.0f, finalOrient), MOTION_SLOT_ACTIVE);      }      else      {          TC_LOG_DEBUG("misc", "Creature (Entry: %u GUID: %u) targeted point (ID: %u X: %f Y: %f Z: %f).",              _owner->GetEntry(), _owner->GetGUID().GetCounter(), id, x, y, z); -        Mutate(new PointMovementGenerator<Creature>(id, x, y, z, generatePath), MOTION_SLOT_ACTIVE); +        Mutate(new PointMovementGenerator<Creature>(id, x, y, z, generatePath, 0.0f, finalOrient), MOTION_SLOT_ACTIVE);      }  } | 
