mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-04-20 09:11:01 +00:00
Fix boundary checks
This commit is contained in:
parent
08f6316662
commit
2084754d2c
1 changed files with 2 additions and 2 deletions
|
@ -1347,7 +1347,7 @@ static void R_RenderSegLoop (void)
|
|||
|
||||
// Lactozilla: Cull part of the column by the 3D floor if it can't be seen
|
||||
// "bottom" is the top pixel of the floor column
|
||||
if (ffbottom >= bottom && R_FFloorCanClip(&ffloor[i]))
|
||||
if (ffbottom >= bottom-1 && R_FFloorCanClip(&ffloor[i]))
|
||||
{
|
||||
floormarked = true;
|
||||
floorclip[rw_x] = fftop;
|
||||
|
@ -1395,7 +1395,7 @@ static void R_RenderSegLoop (void)
|
|||
|
||||
// Lactozilla: Cull part of the column by the 3D floor if it can't be seen
|
||||
// "top" is the height of the ceiling column
|
||||
if (fftop <= top && R_FFloorCanClip(&ffloor[i]))
|
||||
if (fftop <= top+1 && R_FFloorCanClip(&ffloor[i]))
|
||||
{
|
||||
ceilingmarked = true;
|
||||
ceilingclip[rw_x] = ffbottom;
|
||||
|
|
Loading…
Reference in a new issue