aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2020-03-03 21:39:01 +0100
committerShauren <shauren.trinity@gmail.com>2021-12-22 21:41:53 +0100
commitd89671dd5960a7184b060b47413dfce454cb72c4 (patch)
tree18f448370e89fed5e615bdeecbdb810333115341 /src
parent207d8ac3543ed64de109f57e4dc390262689c93d (diff)
Core/PathFinding: Fix mmaps raycast without hit
Update Z coordinate of end position when casting a mmap raycast that doesn't hit the target (cherry picked from commit 16ccc17621313e5c954f26ad23b15392fe06e763)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Movement/PathGenerator.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/game/Movement/PathGenerator.cpp b/src/server/game/Movement/PathGenerator.cpp
index c1e6482bd0b..9823b8d1b8a 100644
--- a/src/server/game/Movement/PathGenerator.cpp
+++ b/src/server/game/Movement/PathGenerator.cpp
@@ -457,6 +457,8 @@ void PathGenerator::BuildPolyPath(G3D::Vector3 const& startPos, G3D::Vector3 con
_type = PATHFIND_INCOMPLETE;
return;
}
+ else
+ _navMeshQuery->getPolyHeight(_pathPolyRefs[_polyLength - 1], endPoint, &endPoint[1]);
}
else
{