Skip to content
Snippets Groups Projects
Commit 0ffb241c authored by Lactozilla's avatar Lactozilla :speech_balloon:
Browse files

Fix 3D floor culling with polyobject segs

parent d004515d
No related branches found
No related tags found
1 merge request!1284ffloorclip fixes (resolves #385 and #391)
...@@ -1191,7 +1191,7 @@ static void R_RenderSegLoop (void) ...@@ -1191,7 +1191,7 @@ static void R_RenderSegLoop (void)
// Lactozilla: Cull part of the column by the 3D floor if it can't be seen // 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 // "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; rw_floormarked = true;
floorclip[rw_x] = fftop; floorclip[rw_x] = fftop;
...@@ -1239,7 +1239,7 @@ static void R_RenderSegLoop (void) ...@@ -1239,7 +1239,7 @@ static void R_RenderSegLoop (void)
// Lactozilla: Cull part of the column by the 3D floor if it can't be seen // Lactozilla: Cull part of the column by the 3D floor if it can't be seen
// "top" is the height of the ceiling column // "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; rw_ceilingmarked = true;
ceilingclip[rw_x] = ffbottom; ceilingclip[rw_x] = ffbottom;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment