From f4bf6edfe66ae5b2e78ecc49f0266f8e98a40ac4 Mon Sep 17 00:00:00 2001 From: Ashnal Date: Sun, 12 Sep 2021 23:06:18 -0400 Subject: [PATCH] Properly detach rocket sneakers when the player dies This includes both death pits and spectating --- src/p_inter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p_inter.c b/src/p_inter.c index abb12811..6e41d153 100644 --- a/src/p_inter.c +++ b/src/p_inter.c @@ -2183,7 +2183,9 @@ void P_KillMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source) P_SetTarget(&target->target->hnext, NULL); } } - // + // Above block does not clean up rocket sneakers when a player dies, so we need to do it here target->target is null when using rocket sneakers + if (target->player) + K_DropRocketSneaker(target->player); // Let EVERYONE know what happened to a player! 01-29-2002 Tails if (target->player && !target->player->spectator)