Sweep Midtexture lines to prevent gremlins

This commit is contained in:
NepDisk 2025-03-21 10:28:38 -04:00
parent 863fa76c25
commit 7849287441

View file

@ -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