]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/cl_weaponsystem.qc
Re-fix players showing as stomach models after being spectated, then the spectator...
[voretournament/voretournament.git] / data / qcsrc / server / cl_weaponsystem.qc
index cf64d15103432df58c14701776e08b9f98968ee8..30f74cf5e907ec06eb3ed9abdb1224135ebf4fb3 100644 (file)
@@ -256,7 +256,7 @@ float CL_ExteriorWeaponentity_CustomizeEntityForClient()
        if(self.owner.weaponname == "" || self.owner.deadflag != DEAD_NO)\r
                return TRUE;\r
 \r
-       if(other.spectatee_status)\r
+       if(other.spectatee_status == num_for_edict(other.enemy))\r
                other = other.enemy; // also do this for the player we are spectating\r
 \r
        if not(other.cvar_chase_active || other.classname == "observer") // the observer check prevents a bug\r