Fix edge case in clipupdatesector()

git-svn-id: https://svn.eduke32.com/eduke32@7760 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-07-06 16:30:37 +00:00 committed by Christoph Oelckers
parent 82c37b78cc
commit 6f54235b7a
1 changed files with 1 additions and 1 deletions

View File

@ -976,7 +976,7 @@ static void clipupdatesector(vec2_t const &pos, int16_t * const sectnum, int con
// check floor curbs here? // check floor curbs here?
for (int j = startwall; j < endwall; j++, uwal++) 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); bfirst_search_try(sectlist, sectbitmap, &nsecs, uwal->nextsector);
} }