From: Mario Date: Sun, 3 Jan 2016 13:16:00 +0000 (+1000) Subject: Fix self usage in midair mutator's PlayerDamage hook X-Git-Tag: xonotic-v0.8.2~1312 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=be2e48a0f1883a8906d7e19fd9e96c1fdb55fb70;p=xonotic%2Fxonotic-data.pk3dir.git Fix self usage in midair mutator's PlayerDamage hook --- diff --git a/qcsrc/common/mutators/mutator/midair/midair.qc b/qcsrc/common/mutators/mutator/midair/midair.qc index 7850166a1..622572c36 100644 --- a/qcsrc/common/mutators/mutator/midair/midair.qc +++ b/qcsrc/common/mutators/mutator/midair/midair.qc @@ -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;