]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix self usage in midair mutator's PlayerDamage hook
authorMario <mario@smbclan.net>
Sun, 3 Jan 2016 13:16:00 +0000 (23:16 +1000)
committerMario <mario@smbclan.net>
Sun, 3 Jan 2016 13:16:00 +0000 (23:16 +1000)
qcsrc/common/mutators/mutator/midair/midair.qc

index 7850166a1bc6874649a06a2116fb28d32a9eccf3..622572c365a6863d8c6dfd8f65d7a8c3500a3fa1 100644 (file)
@@ -10,7 +10,7 @@ MUTATOR_HOOKFUNCTION(midair, PlayerDamage_Calculate)
 {SELFPARAM();
        if(IS_PLAYER(frag_attacker))
        if(IS_PLAYER(frag_target))
-       if(time < self.midair_shieldtime)
+       if(time < frag_target.midair_shieldtime)
                frag_damage = false;
 
        return false;