From f7bca6f86893a3bcc2343a24b998b7c0f3f4994d Mon Sep 17 00:00:00 2001 From: Alug Date: Fri, 25 Oct 2024 02:43:58 +0200 Subject: [PATCH] this crashes --- src/p_map.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/p_map.c b/src/p_map.c index 4a2a9a30b..3034f2a06 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -1721,10 +1721,7 @@ boolean P_CheckPosition(mobj_t *thing, fixed_t x, fixed_t y) tmbbox[BOXRIGHT] = x + tmthing->radius; tmbbox[BOXLEFT] = x - tmthing->radius; - if (thing->x != x || thing->y != y) - newsubsec = R_PointInSubsector(x, y); - else - newsubsec = thing->subsector; + newsubsec = R_PointInSubsector(x, y); ceilingline = blockingline = NULL;