mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-11-15 22:58:48 +00:00
Merge branch 'main' into moreMovementAi
This commit is contained in:
@@ -137,9 +137,11 @@ float dNavMesh::GetHeightAtPoint(const NiPoint3& location, const float halfExten
|
||||
|
||||
auto hasPoly = m_NavQuery->findNearestPoly(pos, polyPickExt, &filter, &nearestRef, nearestPoint);
|
||||
m_NavQuery->getPolyHeight(nearestRef, pos, &toReturn);
|
||||
#ifdef _DEBUG
|
||||
if (toReturn != 0.0f) {
|
||||
DluAssert(toReturn == nearestPoint[1]);
|
||||
}
|
||||
#endif
|
||||
if (toReturn == 0.0f) {
|
||||
// If we were unable to get the poly height, but the query returned a success, just use the height of the nearest point.
|
||||
// This is what seems to happen anyways and it is better than returning zero.
|
||||
|
||||
Reference in New Issue
Block a user