mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
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:
parent
393944b064
commit
1d994404d6
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user