Battle: fix being able to gain points or win from "final" KO after round ends

This commit is contained in:
James R 2024-01-22 17:50:20 -08:00
parent 06514b0e8f
commit 6197458ca4

View file

@ -3897,6 +3897,12 @@ void K_BattleAwardHit(player_t *player, player_t *victim, mobj_t *inflictor, UIN
return;
}
if (player->exiting)
{
// The round has already ended, don't mess with points
return;
}
if ((inflictor && !P_MobjWasRemoved(inflictor)) && (inflictor->type == MT_BANANA && inflictor->health > 1))
{
trapItem = true;