diff options
author | Shauren <shauren.trinity@gmail.com> | 2018-05-04 15:36:14 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-09-26 16:12:52 +0200 |
commit | 58043c8d90f00241c80b58324e84c4361825f345 (patch) | |
tree | 1c7831861621b16d40edfc786c9fc43eabf056b6 | |
parent | 16eb5032ad0e8fbc9cd9d3229be65a8f0190347b (diff) |
Core/Movement: Removed unneccessary z position adjustment
Closes #21872
(cherry picked from commit d9a2177e9cc1115b0d830bd0a76ac0eec9878e05)
-rw-r--r-- | src/server/game/Movement/PathGenerator.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/server/game/Movement/PathGenerator.cpp b/src/server/game/Movement/PathGenerator.cpp index d83b8edc763..cb3ecd2cc0e 100644 --- a/src/server/game/Movement/PathGenerator.cpp +++ b/src/server/game/Movement/PathGenerator.cpp @@ -581,10 +581,7 @@ void PathGenerator::BuildPointPath(const float *startPoint, const float *endPoin void PathGenerator::NormalizePath() { for (uint32 i = 0; i < _pathPoints.size(); ++i) - { - _pathPoints[i].z += _sourceUnit->GetCollisionHeight(); _sourceUnit->UpdateAllowedPositionZ(_pathPoints[i].x, _pathPoints[i].y, _pathPoints[i].z); - } } void PathGenerator::BuildShortcut() |