Don't schedule buff activation before round start
authorterencehill <piuntn@gmail.com>
Sat, 16 May 2020 21:07:12 +0000 (23:07 +0200)
committerterencehill <piuntn@gmail.com>
Sat, 16 May 2020 21:07:12 +0000 (23:07 +0200)
qcsrc/common/mutators/mutator/buffs/sv_buffs.qc

index 5ec00e1..82c9a59 100644 (file)
@@ -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);