Skip to content

Commit

Permalink
WIPEOUT: invuln only during matches
Browse files Browse the repository at this point in the history
  • Loading branch information
dusty-qw committed Feb 1, 2024
1 parent 80e7a11 commit 7b033f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/clan_arena.c
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,7 @@ void CA_player_pre_think(void)
}

// take no damage to health/armor within 1 second of respawn or during endround
if ((match_in_progress == 2) && self->in_play && ((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
2 changes: 1 addition & 1 deletion src/combat.c
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ void T_Damage(gedict_t *targ, gedict_t *inflictor, gedict_t *attacker, float dam
}

// don't accept any damage in CA modes if no_pain is true
if (targ->no_pain)
if (targ->no_pain && (match_in_progress == 2))
{
if (attacker == targ)
{
Expand Down

0 comments on commit 7b033f2

Please sign in to comment.