Recast: fix incorrect land-side classification for neighbor links

Out of bounds classification for land poly's edge must always be performed on the AABB of the base tile.
This commit is contained in:
Kawe Mazidjatari 2024-11-03 01:57:43 +01:00
parent 393944b064
commit 1d994404d6

View File

@ -1036,7 +1036,7 @@ dtStatus dtNavMesh::connectTraverseLinks(const dtTileRef tileRef, const dtTraver
continue;
const unsigned char landSide = params.linkToNeighbor
? rdClassifyPointOutsideBounds(landPolyEdgeMid, landHeader->bmin, landHeader->bmax)
? rdClassifyPointOutsideBounds(landPolyEdgeMid, baseHeader->bmin, baseHeader->bmax)
: rdClassifyPointInsideBounds(landPolyEdgeMid, landHeader->bmin, landHeader->bmax);
float newBaseTmin;