From 78492874416cf0502779e8d5bc12b32ce6edb9ca Mon Sep 17 00:00:00 2001 From: NepDisk Date: Fri, 21 Mar 2025 10:28:38 -0400 Subject: [PATCH] Sweep Midtexture lines to prevent gremlins --- src/p_maputl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/p_maputl.c b/src/p_maputl.c index 867e2b1a4..f6568e23b 100644 --- a/src/p_maputl.c +++ b/src/p_maputl.c @@ -439,6 +439,12 @@ P_GetMidtextureTopBottom // Get the midtexture's height texheight = textures[texnum]->height << FRACBITS; + if (g_tm.sweep) + { + // Sweep Midtexture lines to prevent issues with some midtextures. + P_TestLine(linedef); + } + // Set texbottom and textop to the Z coordinates of the texture's boundaries #if 0 // don't remove this code unless solid midtextures