From 41ca39788128c014891d66f8202deea02a0f13db Mon Sep 17 00:00:00 2001 From: SteelT Date: Thu, 29 Jun 2023 17:10:28 -0400 Subject: [PATCH] Don't thrust player if the UFO is dead --- src/p_map.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/p_map.c b/src/p_map.c index db62c9343..2d00b808e 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -757,11 +757,19 @@ static BlockItReturn_t PIT_CheckThing(mobj_t *thing) { if (tm.thing->type != MT_PLAYER) { - return BMIT_CONTINUE; + return BMIT_CONTINUE; // not a player + } + + if (thing->health <= 0) + { + return BMIT_CONTINUE; // dead } if (tm.thing->z > thing->z + thing->height) + { return BMIT_CONTINUE; // overhead + } + P_SetObjectMomZ(tm.thing, FRACUNIT, true); return BMIT_CONTINUE; }