ffloorclip fixes
See https://git.do.srb2.org/STJr/SRB2/-/merge_requests/1284?commit_id=47b8c0648b2b87fdf7ec388e1f0c3b48239c8cff
This commit is contained in:
1 parent
27b4c53be4
commit
1c4515f3e3
1 file changed
+3
-3
+3
-3
@@ -705,7 +705,7 @@ static boolean R_IsFFloorTranslucent(visffloor_t *pfloor)
|
||||
|
||||
// Polyobjects have no ffloors, and they're handled in the conditional above.
|
||||
if (pfloor->ffloor != NULL)
|
||||
return (pfloor->ffloor->flags & FF_TRANSLUCENT);
|
||||
return (pfloor->ffloor->flags & (FF_TRANSLUCENT|FF_FOG));
|
||||
|
||||
return false;
|
||||
}
|
||||
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user