From 458f57e3d5a5cefd3ce59022bd8cbd5b56c6f56d Mon Sep 17 00:00:00 2001 From: ikpil Date: Sun, 21 May 2023 16:55:24 +0900 Subject: [PATCH] [Upstream] Fix spans being filtered even if they have just enough clearance --- src/DotRecast.Recast/RecastFilter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DotRecast.Recast/RecastFilter.cs b/src/DotRecast.Recast/RecastFilter.cs index d3a7980..38536bd 100644 --- a/src/DotRecast.Recast/RecastFilter.cs +++ b/src/DotRecast.Recast/RecastFilter.cs @@ -194,7 +194,7 @@ namespace DotRecast.Recast { int bot = (s.smax); int top = s.next != null ? s.next.smin : SPAN_MAX_HEIGHT; - if ((top - bot) <= walkableHeight) + if ((top - bot) < walkableHeight) s.area = RC_NULL_AREA; } }