From 2f5b3e3524f1ec070374a3d3324cbc67cd7119ca Mon Sep 17 00:00:00 2001 From: NepDisk <16447892+NepDisk@users.noreply.github.com> Date: Tue, 20 Aug 2024 14:04:01 -0400 Subject: [PATCH] Fix midtexture collision --- src/p_maputl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/p_maputl.c b/src/p_maputl.c index 98734153e..4c78c4ed4 100644 --- a/src/p_maputl.c +++ b/src/p_maputl.c @@ -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)) {