From 48b6b6e0576fd7b21bfc415079cfffcee0da090f Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 8 Mar 2016 19:53:37 -0600 Subject: [PATCH] Clip portals to viewheight, not screen height - Aside, but is this even neccessary? The arrays being copied from should already be clipped properly. --- src/r_segs.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/r_segs.cpp b/src/r_segs.cpp index 06c5034c63..eca7adc882 100644 --- a/src/r_segs.cpp +++ b/src/r_segs.cpp @@ -2643,12 +2643,12 @@ void R_StoreWallRange (int start, int stop) { if (pds.ceilingclip[i] < 0) pds.ceilingclip[i] = 0; - if (pds.ceilingclip[i] >= RenderTarget->GetHeight()) - pds.ceilingclip[i] = RenderTarget->GetHeight()-1; + if (pds.ceilingclip[i] >= viewheight) + pds.ceilingclip[i] = viewheight-1; if (pds.floorclip[i] < 0) pds.floorclip[i] = 0; - if (pds.floorclip[i] >= RenderTarget->GetHeight()) - pds.floorclip[i] = RenderTarget->GetHeight()-1; + if (pds.floorclip[i] >= viewheight) + pds.floorclip[i] = viewheight-1; } pds.mirror = curline->linedef->special == Line_Mirror;