From 751c3399481af16db457e17aba0f95ca39181e63 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 11 Jun 2025 16:32:25 +0200 Subject: [PATCH] we have a var for that lul --- src/r_plane.cpp | 5 +---- src/r_segs.cpp | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/r_plane.cpp b/src/r_plane.cpp index 57a2d2887..3fbf894ec 100644 --- a/src/r_plane.cpp +++ b/src/r_plane.cpp @@ -729,10 +729,7 @@ void R_DrawSkyPlanes(void) { for (pl = visplanes[i]; pl; pl = pl->next) { - if (pl->ffloor != NULL || pl->polyobj != NULL) - continue; - - if (pl->picnum != skyflatnum) + if (pl->picnum != skyflatnum || pl->ffloor != NULL || pl->polyobj != NULL) continue; R_DrawSkyPlane(pl, colfunc, cv_parallelsoftware.value); diff --git a/src/r_segs.cpp b/src/r_segs.cpp index 5e3416ef2..fc83ad799 100644 --- a/src/r_segs.cpp +++ b/src/r_segs.cpp @@ -1424,7 +1424,7 @@ static void R_RenderSegLoop(drawcolumndata_t* dc) // single sided line if (yl <= yh && yh >= 0 && yl < viewheight) { - R_DrawWallColumn(dc, yl, yh, rw_midtexturemid, texturecolumn, midtexture, (encoremap && !(curline->linedef->flags & ML_TFERLINE))); + R_DrawWallColumn(dc, yl, yh, rw_midtexturemid, texturecolumn, midtexture, midremap); // dont draw anything more for this column, since // a midtexture blocks the view