Fix midtexture collision

This commit is contained in:
NepDisk 2024-08-20 14:04:01 -04:00
parent 589aa58f62
commit 2f5b3e3524

View file

@ -681,6 +681,7 @@ void P_LineOpening(line_t *linedef, mobj_t *mobj)
if (texnum) {
// Get the midtexture's height
texheight = textures[texnum]->height << FRACBITS;
P_ClosestPointOnLine(tmx, tmy, linedef, &cross);
if (P_GetMidtextureTopBottom(linedef, cross.x, cross.y, &textop, &texbottom))
{