From 9432fd6381d5b7c0567b06e6baff3783e80a3eb1 Mon Sep 17 00:00:00 2001 From: andriyDev Date: Sat, 20 May 2023 14:10:59 -0700 Subject: [PATCH] Fix spans being filtered if they have just enough clearance. (#626) --- Recast/Source/RecastFilter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Recast/Source/RecastFilter.cpp b/Recast/Source/RecastFilter.cpp index e980a83..b5adba4 100644 --- a/Recast/Source/RecastFilter.cpp +++ b/Recast/Source/RecastFilter.cpp @@ -174,7 +174,7 @@ void rcFilterWalkableLowHeightSpans(rcContext* context, const int walkableHeight { const int bot = (int)(span->smax); const int top = span->next ? (int)(span->next->smin) : MAX_HEIGHT; - if ((top - bot) <= walkableHeight) + if ((top - bot) < walkableHeight) { span->area = RC_NULL_AREA; }