mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: fix more compiler errors caused by rename mistake
Mistake was made in commit 2f9776d495f6a5c7bedccc3566b81d41d28e09f6, corrected.
This commit is contained in:
parent
9fa6b6c42a
commit
f5834c6077
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user