From 04f63b23ffe1c6a47ef82a707f3f23f080ab1b69 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 660b91494..a53d40ec4 100644 --- a/src/r_segs.cpp +++ b/src/r_segs.cpp @@ -1222,6 +1222,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;