Recast: fix more compiler errors caused by rename mistake

Mistake was made in commit 2f9776d495f6a5c7bedccc3566b81d41d28e09f6, corrected.
This commit is contained in:
Kawe Mazidjatari 2024-07-12 22:25:11 +02:00
parent 9fa6b6c42a
commit f5834c6077

View File

@ -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;