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