X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=blobdiff_plain;f=data%2Fqcsrc%2Fserver%2Fcl_weaponsystem.qc;h=144ade6ecc2159ff99b96f90ade6c42e56cdb2a8;hp=30f74cf5e907ec06eb3ed9abdb1224135ebf4fb3;hb=8f3126d8771da7f1e8ad1200d9c77226ecc91756;hpb=7a8db04cd3606884419471a89f6ac412e19335be;ds=sidebyside 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