Don't let death type damage kill respawning player

This includes death pits and instakill sectors. Does not
affect direct P_KillMobj calls.
This commit is contained in:
James R 2023-03-01 07:25:54 -08:00
parent 6e5a5bf92d
commit 0cd260eed1

View file

@ -1911,6 +1911,12 @@ static boolean P_KillPlayer(player_t *player, mobj_t *inflictor, mobj_t *source,
{
(void)source;
if (player->respawn.state != RESPAWNST_NONE)
{
K_DoInstashield(player);
return false;
}
if (!player->exiting && specialstageinfo.valid == true)
{
player->pflags |= PF_NOCONTEST;