From: Mircea Kitsune Date: Thu, 5 Jan 2012 14:34:35 +0000 (+0200) Subject: Fix a code failure X-Git-Tag: xonotic-v0.6.0~110^2^2~47 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=96c9a4f521a27af8d7b409e820e4da9a82633276;p=xonotic%2Fxonotic-data.pk3dir.git Fix a code failure --- diff --git a/qcsrc/client/damage.qc b/qcsrc/client/damage.qc index 52fd865bf..b83cd2a5c 100644 --- a/qcsrc/client/damage.qc +++ b/qcsrc/client/damage.qc @@ -246,6 +246,7 @@ void DamageEffect_Think() remove(self); return; } + self.nextthink = time + autocvar_cl_damageeffect_ticrate; if(self.owner.entnum == player_localentnum && !autocvar_chase_active) return; // if we aren't using a third person view, hide our own effects @@ -253,7 +254,6 @@ void DamageEffect_Think() vector org; org = gettaginfo(self, 0); // origin at attached location pointparticles(self.team, org, '0 0 0', 1); - self.nextthink = time + autocvar_cl_damageeffect_ticrate; } void DamageEffect(vector hitorg, float dmg, float type, float specnum)