From: Mircea Kitsune Date: Wed, 4 Jan 2012 14:13:52 +0000 (+0200) Subject: Fix an epic failure in my code. This finally gets the damage effects working as inten... X-Git-Tag: xonotic-v0.6.0~110^2^2~77 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bf3c7957c34da3b561d688a160be6552de032ec7;p=xonotic%2Fxonotic-data.pk3dir.git Fix an epic failure in my code. This finally gets the damage effects working as intended again, for both hitscan and splash damage weapons --- diff --git a/qcsrc/client/damage.qc b/qcsrc/client/damage.qc index 8784c12ea..b6390e631 100644 --- a/qcsrc/client/damage.qc +++ b/qcsrc/client/damage.qc @@ -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;