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