]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Reset player's buff time to 0 (possible fix for dropping buff on pickup)
authorMario <mario@smbclan.net>
Sat, 18 Jun 2016 15:34:23 +0000 (01:34 +1000)
committerMario <mario@smbclan.net>
Sat, 18 Jun 2016 15:34:23 +0000 (01:34 +1000)
qcsrc/common/mutators/mutator/buffs/buffs.qc

index ec1fadabe58adb2b78130243661be98f456d25f7..1e873105b1bc52c7b6ffe57acf3e735f488d8620 100644 (file)
@@ -872,7 +872,10 @@ MUTATOR_HOOKFUNCTION(buffs, PlayerPreThink)
 
        if(player.buff_time)
        if(time >= player.buff_time)
+       {
+               player.buff_time = 0;
                buff_lost = 2;
+       }
 
        if(STAT(FROZEN, player)) { buff_lost = 1; }