From 88c4517b72f5a518b3df506f145d9f6b671e1cac Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 24 Oct 2024 02:56:10 +0200 Subject: [PATCH] this only needs to be checked when thing->player aaaa --- src/p_map.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p_map.c b/src/p_map.c index dd8823e10..4a2a9a30b 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -2374,10 +2374,12 @@ boolean P_TryMove(mobj_t *thing, fixed_t x, fixed_t y, boolean allowdropoff) { //All things are affected by their scale. fixed_t maxstep = FixedMul(MAXSTEPMOVE, mapobjectscale); - INT32 special = GETSECSPECIAL(R_PointInSubsector(x, y)->sector->special, 1); + INT32 special = 0; if (thing->player) { + special = GETSECSPECIAL(R_PointInSubsector(x, y)->sector->special, 1); + // If using type Section1:13, double the maxstep. if (P_PlayerTouchingSectorSpecial(thing->player, 1, 13) || special == 13)