From 760a0784509d0e5ed0900acaa007bd0128992920 Mon Sep 17 00:00:00 2001 From: alufolie91 Date: Sat, 12 Aug 2023 02:09:32 +0200 Subject: [PATCH] Fix 3D floor culling with polyobject segs see: https://git.do.srb2.org/STJr/SRB2/-/commit/0ffb241c0a1705273c0c93790b67d2ce3474ad0e?merge_request_iid=1284 --- src/r_segs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_segs.c b/src/r_segs.c index e93cbaecb..5ef4fc4cc 100644 --- a/src/r_segs.c +++ b/src/r_segs.c @@ -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;