From 1ad2f18573d152ce3d4165351b201c8cd35e86d9 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 22 Oct 2024 11:58:18 +0200 Subject: [PATCH] Recast: improve comment for dtNavMesh::isGoalPolyReachable --- src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp b/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp index bdf02196..e94f3c87 100644 --- a/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp +++ b/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp @@ -1680,10 +1680,8 @@ bool dtNavMesh::isGoalPolyReachable(const dtPolyRef fromRef, const dtPolyRef goa const unsigned short fromPolyGroupId = fromPoly->groupId; const unsigned short goalPolyGroupId = goalPoly->groupId; - // If we don't have an anim type, then we shouldn't use the traverse tables - // since these are used for linking isolated poly islands together (which - // requires jumping or some form of animation). So instead, check if we are - // on the same poly island. + // If we don't utilize traverse portals, check if we are on the same island as + // its impossible to reach the goal if we aren't. if (checkDisjointGroupsOnly) return fromPolyGroupId == goalPolyGroupId;