player death too

This commit is contained in:
minenice55 2026-04-06 16:05:14 -04:00
parent 32fbacd51f
commit 6aa091d019
2 changed files with 3 additions and 1 deletions

View file

@ -1849,7 +1849,6 @@ static void K_DoHyudoroSteal(player_t *player)
players[stealplayer].itemamount = 0;
K_DisableSeekingReticule(player);
K_UnsetItemOut(&players[stealplayer]);
if (P_IsDisplayPlayer(&players[stealplayer]) && !r_splitscreen)
S_StartSound(NULL, sfx_s3k92);

View file

@ -1422,7 +1422,10 @@ void P_KillMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, UINT8 damaget
}
// 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_DisableSeekingReticule(target->player);
K_DropRocketSneaker(target->player);
}
// Let EVERYONE know what happened to a player! 01-29-2002 Tails
if (target->player && !target->player->spectator)