Skip to content
Snippets Groups Projects
Unverified Commit 9432fd63 authored by andriyDev's avatar andriyDev Committed by GitHub
Browse files

Fix spans being filtered if they have just enough clearance. (#626)

parent 53f78180
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment