From: terencehill Date: Sat, 16 May 2020 21:07:12 +0000 (+0200) Subject: Don't schedule buff activation before round start X-Git-Tag: xonotic-v0.8.5~1071 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=a5fcfecb5218bad5a91f9b585e1f631718d6a2ac;p=xonotic%2Fxonotic-data.pk3dir.git Don't schedule buff activation before round start --- diff --git a/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc b/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc index 5ec00e125..82c9a595a 100644 --- a/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc +++ b/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc @@ -261,7 +261,7 @@ void buff_Think(entity this) } if(!game_stopped) - if((round_handler_IsActive() && !round_handler_IsRoundStarted()) || time >= game_starttime) + if((round_handler_IsActive() && round_handler_IsRoundStarted()) || time >= game_starttime) if(!this.buff_activetime_updated) { buff_SetCooldown(this, this.buff_activetime); @@ -282,7 +282,7 @@ void buff_Think(entity this) if(this.buff_activetime) if(!game_stopped) - if((round_handler_IsActive() && !round_handler_IsRoundStarted()) || time >= game_starttime) + if((round_handler_IsActive() && round_handler_IsRoundStarted()) || time >= game_starttime) { this.buff_activetime = max(0, this.buff_activetime - frametime);