]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix buff initial cooldown lasting too long
authorMario <mario@smbclan.net>
Sat, 4 Mar 2017 16:33:42 +0000 (02:33 +1000)
committerMario <mario@smbclan.net>
Sat, 4 Mar 2017 16:33:42 +0000 (02:33 +1000)
qcsrc/common/mutators/mutator/buffs/sv_buffs.qc

index ac7cc0f118ccaf4d6e94e8358a813cdd49a7df18..2cf64713512a9c0b73eed621a9cb3dac4be0fe1e 100644 (file)
@@ -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;