]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix a code failure
authorMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 5 Jan 2012 14:34:35 +0000 (16:34 +0200)
committerMircea Kitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 5 Jan 2012 14:34:35 +0000 (16:34 +0200)
qcsrc/client/damage.qc

index 52fd865bf7767dbac5142727a89ea423bb3a364f..b83cd2a5c34c6cabb8d18267740cedc046c18b00 100644 (file)
@@ -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)