From 27428e8b9fdfbfa757271f62e392d3c30acdd0e6 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Tue, 3 Feb 2026 14:57:22 -0500 Subject: [PATCH] Hack to fix infitely tall software double sided linedefs flicker bug on some maps Thanks Alug for looking into this. Unfornately not easy to fix unless convert a bunch of code to use 64bit math or floats. --- src/r_segs.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/r_segs.cpp b/src/r_segs.cpp index 247233ebc..7f0b03204 100644 --- a/src/r_segs.cpp +++ b/src/r_segs.cpp @@ -1364,6 +1364,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) { #if 0