From: MirceaKitsune Date: Fri, 8 Jul 2011 00:51:52 +0000 (+0300) Subject: Fix my last fix X-Git-Url: https://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=8f3126d8771da7f1e8ad1200d9c77226ecc91756 Fix my last fix --- diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 13133ad5..0c5083a1 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -523,7 +523,7 @@ float Client_customizeentityforclient() // this is only visible to the prey however, otherwise players would appear as a floating stomach to everyone (ewww) stomachmodel = strcat(substring(self.playermodel, 0, strlen(self.playermodel) - 4), "_stomach.md3"); // 4 is the extension length - if(other.spectatee_status == num_for_edict(other.enemy)) + if(other.spectatee_status && other.spectatee_status == num_for_edict(other.enemy)) other = other.enemy; // also do this for the player we are spectating // don't do this if we have chase_active enabled, as we'd be seeing a floating stomach from third person view diff --git a/data/qcsrc/server/cl_weaponsystem.qc b/data/qcsrc/server/cl_weaponsystem.qc index 30f74cf5..144ade6e 100644 --- a/data/qcsrc/server/cl_weaponsystem.qc +++ b/data/qcsrc/server/cl_weaponsystem.qc @@ -256,7 +256,7 @@ float CL_ExteriorWeaponentity_CustomizeEntityForClient() if(self.owner.weaponname == "" || self.owner.deadflag != DEAD_NO) return TRUE; - if(other.spectatee_status == num_for_edict(other.enemy)) + if(other.spectatee_status && other.spectatee_status == num_for_edict(other.enemy)) other = other.enemy; // also do this for the player we are spectating if not(other.cvar_chase_active || other.classname == "observer") // the observer check prevents a bug