Permit losing a life when exited if the player has PF_NOCONTEST

This commit is contained in:
toaster 2023-01-02 00:54:24 +00:00
parent 8f78b37e57
commit 718eb8b11f

View file

@ -675,7 +675,7 @@ void K_PlayerLoseLife(player_t *player)
return;
}
if (player->spectator || player->exiting || player->bot || player->lives <= 0 || (player->pflags & PF_LOSTLIFE))
if (player->spectator || (player->exiting && !(player->pflags & PF_NOCONTEST)) || player->bot || player->lives <= 0 || (player->pflags & PF_LOSTLIFE))
{
return;
}