]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Fix my last fix
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 8 Jul 2011 00:51:52 +0000 (03:51 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Fri, 8 Jul 2011 00:51:52 +0000 (03:51 +0300)
data/qcsrc/server/cl_client.qc
data/qcsrc/server/cl_weaponsystem.qc

index 13133ad5e3f9b46c4a909ad4d4a9f22118856080..0c5083a1be47e838f3857c20d16493d8f42ad358 100644 (file)
@@ -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)\r
        stomachmodel = strcat(substring(self.playermodel, 0, strlen(self.playermodel) - 4), "_stomach.md3"); // 4 is the extension length\r
 \r
-       if(other.spectatee_status == num_for_edict(other.enemy))\r
+       if(other.spectatee_status && other.spectatee_status == num_for_edict(other.enemy))\r
                other = other.enemy; // also do this for the player we are spectating\r
 \r
        // don't do this if we have chase_active enabled, as we'd be seeing a floating stomach from third person view\r
index 30f74cf5e907ec06eb3ed9abdb1224135ebf4fb3..144ade6ecc2159ff99b96f90ade6c42e56cdb2a8 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 == num_for_edict(other.enemy))\r
+       if(other.spectatee_status && 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