]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix an epic failure in my code. This finally gets the damage effects working as inten...
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 Jan 2012 14:13:52 +0000 (16:13 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Wed, 4 Jan 2012 14:13:52 +0000 (16:13 +0200)
qcsrc/client/damage.qc

index 8784c12eaf5caa2c8c1457ab912c8b10c267921b..b6390e631a62d200a75ef75ea9289ed2f989b772 100644 (file)
@@ -72,8 +72,9 @@ void Ent_DamageInfo(float isNew)
 
                if(self.event_damage)
                        self.event_damage(thisdmg, w_deathtype, w_org, thisforce);
+
+               DamageEffect(dmg, w_deathtype, species, self.entnum - 1);
        }
-       DamageEffect(dmg, w_deathtype, species, self.entnum - 1);
 
        self = oldself;