aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2018-05-04 15:36:14 +0200
committerShauren <shauren.trinity@gmail.com>2018-05-04 15:36:14 +0200
commitd9a2177e9cc1115b0d830bd0a76ac0eec9878e05 (patch)
tree74843ccc79056021aa7511b3ba5c34f73bc563ba
parentfd33b1cd02a1c69fc78f47f079eadc43c331d054 (diff)
Core/Movement: Removed unneccessary z position adjustment
Closes #21872
-rw-r--r--src/server/game/Movement/PathGenerator.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/server/game/Movement/PathGenerator.cpp b/src/server/game/Movement/PathGenerator.cpp
index 03f383b2fd7..912de049261 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()