]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't run buff player logic during physics frames
authorMario <mario@smbclan.net>
Fri, 10 Feb 2017 04:04:11 +0000 (14:04 +1000)
committerMario <mario@smbclan.net>
Fri, 10 Feb 2017 04:04:11 +0000 (14:04 +1000)
qcsrc/common/mutators/mutator/buffs/sv_buffs.qc

index b63349e86a34b1965896b9e30955b20443226706..4643ed201676a27ef09bc39f23fc713c57fd40b8 100644 (file)
@@ -795,7 +795,7 @@ MUTATOR_HOOKFUNCTION(buffs, PlayerPreThink)
 {
        entity player = M_ARGV(0, entity);
 
-       if(game_stopped || IS_DEAD(player)) return;
+       if(game_stopped || IS_DEAD(player) || frametime) return;
 
        if(player.buffs & BUFF_FLIGHT.m_itemid)
        {