From eda3820e66756854c36cc6c33da3bbc6a3b11a56 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 28 Nov 2024 08:01:24 +0100 Subject: [PATCH] eh this looks better --- src/p_local.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_local.h b/src/p_local.h index 921e598de..7cf7c4389 100644 --- a/src/p_local.h +++ b/src/p_local.h @@ -255,7 +255,7 @@ void P_SceneryThinker(mobj_t *mobj); // To test it in Lua, check mobj.valid FUNCINLINE static ATTRINLINE boolean P_MobjWasRemoved(const mobj_t *mobj) { - return !(mobj && mobj->thinker.function.acp1 == (actionf_p1)P_MobjThinker); + return (!mobj || mobj->thinker.function.acp1 != (actionf_p1)P_MobjThinker); } fixed_t P_MobjFloorZ(mobj_t *mobj, sector_t *sector, sector_t *boundsec, fixed_t x, fixed_t y, line_t *line, boolean lowest, boolean perfect);