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:
Kawe Mazidjatari 2024-10-31 19:21:08 +01:00
parent 582ecec038
commit 48aa2700fa

View File

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