]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
prepare for future removal of spectatee_status
authorRudolf Polzer <divverent@alientrap.org>
Mon, 16 Jan 2012 20:12:26 +0000 (21:12 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Mon, 16 Jan 2012 20:12:26 +0000 (21:12 +0100)
qcsrc/client/damage.qc

index 788ef3b8a0a44a1accf8205de728428a4967d8e2..138d68a322116a4e7c7dbfb91c8284228ecb213a 100644 (file)
@@ -22,7 +22,11 @@ void DamageEffect_Think()
                return;
        }
        self.state = self.owner.csqcmodel_isdead;
+#ifdef COMPAT_XON050_ENGINE
        if(self.owner.isplayermodel && (self.owner.entnum == player_localentnum || self.owner.entnum == spectatee_status) && !autocvar_chase_active)
+#else
+       if(self.owner.isplayermodel && (self.owner.entnum == player_localentnum) && !autocvar_chase_active)
+#endif
                return; // if we aren't using a third person camera, hide our own effects
 
        // now generate the particles