From f5834c607723256491c06db6f288c9a5a2774a47 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Fri, 12 Jul 2024 22:25:11 +0200 Subject: [PATCH] Recast: fix more compiler errors caused by rename mistake Mistake was made in commit 2f9776d495f6a5c7bedccc3566b81d41d28e09f6, corrected. --- src/thirdparty/recast/Detour/Source/DetourNavMeshQuery.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/thirdparty/recast/Detour/Source/DetourNavMeshQuery.cpp b/src/thirdparty/recast/Detour/Source/DetourNavMeshQuery.cpp index f24a0464..fdc577ef 100644 --- a/src/thirdparty/recast/Detour/Source/DetourNavMeshQuery.cpp +++ b/src/thirdparty/recast/Detour/Source/DetourNavMeshQuery.cpp @@ -263,7 +263,7 @@ dtStatus dtNavMeshQuery::findRandomPoint(const dtQueryFilter* filter, float (*fr continue; // Calc area of the polygon. - const float polyArea = dtCalcPolyArea(p, tile->verts); + const float polyArea = dtCalcPolySurfaceArea(p, tile->verts); // Choose random polygon weighted by area, using reservoir sampling. areaSum += polyArea; @@ -364,7 +364,7 @@ dtStatus dtNavMeshQuery::findRandomPointAroundCircle(dtPolyRef startRef, const f if (bestPoly->getType() == DT_POLYTYPE_GROUND) { // Calc area of the polygon. - const float polyArea = dtCalcPolyArea(bestPoly, bestTile->verts); + const float polyArea = dtCalcPolySurfaceArea(bestPoly, bestTile->verts); // Choose random polygon weighted by area, using reservoir sampling. areaSum += polyArea;