From 485aab845e2d96907ce266f99e41cfdae35c3cbd Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 4 Feb 2026 13:02:27 +0100 Subject: [PATCH] software: hack for bogus height walls as per comment, this is merely a shitty workaround for a chain reaction of bad fixed point maths since im honestly not feeling like rewriting most of the software renderer to either operate on 64bit or float maths, we just skip drawing anything that seems completely unreasonable --- src/r_segs.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/r_segs.cpp b/src/r_segs.cpp index d681a98d6..92b751501 100644 --- a/src/r_segs.cpp +++ b/src/r_segs.cpp @@ -1207,6 +1207,15 @@ static void R_RenderSegLoop(drawcolumndata_t* dc) if (yl < top) yl = top; + // insanely shitty hack to fix flickering on some maps + // for god knows why, on secret slide the renderer assumes some double sided linedefs have insanely tall walls + // since such tall walls are effectively nonsense in any case + // just skip them + if (yl > FRACUNIT*3) + { + continue; + } + if (markceiling) { bottom = yl > floorclip[rw_x] ? floorclip[rw_x] : yl;