Try walldist + 8 instead of walldist << 1 in clipupdatesector()

git-svn-id: https://svn.eduke32.com/eduke32@7807 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-07-19 01:49:24 +00:00 committed by Christoph Oelckers
parent 97390c1ff4
commit 43f263fc65

View file

@ -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 << 1))
if (uwal->nextsector >= 0 && getwalldist(pos, j) <= (walldist + 8))
bfirst_search_try(sectlist, sectbitmap, &nsecs, uwal->nextsector);
}