mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: remove extraneous polygroup check from traverse link algorithm
The static pathing data is either not built, or has to be rebuilt at this stage. If we have do happen to have dead polygons that we can use for traverse portals then we should leverage them to get as much coverage as possible.
This commit is contained in:
parent
582ecec038
commit
48aa2700fa
@ -779,9 +779,6 @@ dtStatus dtNavMesh::connectTraverseLinks(const dtTileRef tileRef, const dtTraver
|
||||
{
|
||||
dtPoly* const basePoly = &baseTile->polys[i];
|
||||
|
||||
if (basePoly->groupId == DT_UNLINKED_POLY_GROUP)
|
||||
continue;
|
||||
|
||||
if (basePoly->getType() == DT_POLYTYPE_OFFMESH_CONNECTION)
|
||||
continue;
|
||||
|
||||
@ -883,9 +880,6 @@ dtStatus dtNavMesh::connectTraverseLinks(const dtTileRef tileRef, const dtTraver
|
||||
{
|
||||
dtPoly* const landPoly = &landTile->polys[o];
|
||||
|
||||
if (landPoly->groupId == DT_UNLINKED_POLY_GROUP)
|
||||
continue;
|
||||
|
||||
if (landPoly->getType() == DT_POLYTYPE_OFFMESH_CONNECTION)
|
||||
continue;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user