From 6f54235b7a14844f9a4e9585a9a048fd1230211a Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 6 Jul 2019 16:30:37 +0000 Subject: [PATCH] Fix edge case in clipupdatesector() git-svn-id: https://svn.eduke32.com/eduke32@7760 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/src/clip.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/build/src/clip.cpp b/source/build/src/clip.cpp index 31e188dc1..59af1eab6 100644 --- a/source/build/src/clip.cpp +++ b/source/build/src/clip.cpp @@ -976,7 +976,7 @@ static void clipupdatesector(vec2_t const &pos, int16_t * const sectnum, int con // check floor curbs here? for (int j = startwall; j < endwall; j++, uwal++) - if (uwal->nextsector >= 0 && getwalldist(pos, j) <= walldist) + if (uwal->nextsector >= 0 && getwalldist(pos, j) <= (walldist << 1)) bfirst_search_try(sectlist, sectbitmap, &nsecs, uwal->nextsector); }