From 98eded01f3a1e9b7f3bb2fd21d4d637422cf7535 Mon Sep 17 00:00:00 2001 From: Mario Date: Sun, 5 Mar 2017 02:33:42 +1000 Subject: [PATCH] Fix buff initial cooldown lasting too long --- qcsrc/common/mutators/mutator/buffs/sv_buffs.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc b/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc index ac7cc0f11..2cf647135 100644 --- a/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc +++ b/qcsrc/common/mutators/mutator/buffs/sv_buffs.qc @@ -370,7 +370,7 @@ void buff_Init(entity this) //this.gravity = 100; this.color = buff.m_color; this.glowmod = buff_GlowColor(this); - buff_SetCooldown(this, autocvar_g_buffs_cooldown_activate + game_starttime); + buff_SetCooldown(this, autocvar_g_buffs_cooldown_activate + (game_starttime - time)); this.buff_active = !this.buff_activetime; this.pflags = PFLAGS_FULLDYNAMIC; -- 2.39.2