From: Mircea Kitsune Date: Mon, 9 Jan 2012 19:43:55 +0000 (+0200) Subject: Fix a bug with self detection. Code working properly again X-Git-Tag: xonotic-v0.6.0~110^2^2~36 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f87bdf53d5290a36f7a70389bd402aabddc3fba8;p=xonotic%2Fxonotic-data.pk3dir.git Fix a bug with self detection. Code working properly again --- diff --git a/qcsrc/client/damage.qc b/qcsrc/client/damage.qc index 4e42794b1..e3254d7f4 100644 --- a/qcsrc/client/damage.qc +++ b/qcsrc/client/damage.qc @@ -263,7 +263,7 @@ void DamageEffect_Think() return; } self.state = self.owner.csqcmodel_isdead; - if((self.owner.entnum == player_localentnum || self.owner.entnum == spectatee_status) && !autocvar_chase_active) + if(self.owner.isplayermodel && (self.owner.entnum == player_localentnum || self.owner.entnum == spectatee_status) && !autocvar_chase_active) return; // if we aren't using a third person camera, hide our own effects // now generate the particles