]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 5ec00e1253008e57e4c330e7ccb0ee82d171260e..82c9a595a64455255c783a84a4ca87f27b7cb45e 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);