Core/PathFinding: Fix mmaps raycast without hit

Update Z coordinate of end position when casting a mmap raycast that doesn't hit the target
This commit is contained in:
jackpoz
2020-03-03 21:39:01 +01:00
committed by Ovahlord
parent 10dc04b2f2
commit 9eafd794f8

View File

@@ -459,6 +459,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
{