From: Mario Date: Sat, 4 Mar 2017 16:33:42 +0000 (+1000) Subject: Fix buff initial cooldown lasting too long X-Git-Tag: xonotic-v0.8.2~143 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=98eded01f3a1e9b7f3bb2fd21d4d637422cf7535;p=xonotic%2Fxonotic-data.pk3dir.git Fix buff initial cooldown lasting too long --- 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;