Fix 3D floor culling with polyobject segs

see: https://git.do.srb2.org/STJr/SRB2/-/commit/0ffb241c0a1705273c0c93790b67d2ce3474ad0e?merge_request_iid=1284
This commit is contained in:
alufolie91 committed 2023-08-12 02:09:32 +02:00
1 parent 0cc1d04deb
commit 760a078450
1 file changed
+2 -2
+2 -2
View File
@@ -1369,7 +1369,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-1 && R_FFloorCanClip(&ffloor[i]))
if (ffbottom >= bottom-1 && R_FFloorCanClip(&ffloor[i]) && !curline->polyseg)
{
rw_floormarked = true;
floorclip[rw_x] = fftop;
@@ -1413,7 +1413,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+1 && R_FFloorCanClip(&ffloor[i]))
if (fftop <= top+1 && R_FFloorCanClip(&ffloor[i]) && !curline->polyseg)
{
rw_ceilingmarked = true;
ceilingclip[rw_x] = ffbottom;