Skip to content

Commit

Permalink
WIPEOUT: fix bug allowing dead players to get hurt
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-qw committed Dec 7, 2023
1 parent 1747820 commit ffcc34a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clan_arena.c
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ void CA_player_pre_think(void)

// take no damage to health/armor withing 1 second of respawn
// or during endround
if (((self->alive_time >= 1) || !self->round_deaths) && !ca_round_pause)
if (self->in_play && ((self->alive_time >= 1) || !self->round_deaths) && !ca_round_pause)
{
self->no_pain = false;
}
Expand Down

0 comments on commit ffcc34a

Please sign in to comment.