From: Samual Lenks Date: Tue, 18 Feb 2014 23:10:33 +0000 (-0500) Subject: Also check to make sure that the client is really a spectator X-Git-Tag: xonotic-v0.8.0~152^2~88 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5e9b2abcd9e543914200a40438a3eec0a871b697;p=xonotic%2Fxonotic-data.pk3dir.git Also check to make sure that the client is really a spectator --- diff --git a/qcsrc/common/weapons/w_arc.qc b/qcsrc/common/weapons/w_arc.qc index a11f722d0..3eaa17b8c 100644 --- a/qcsrc/common/weapons/w_arc.qc +++ b/qcsrc/common/weapons/w_arc.qc @@ -77,7 +77,7 @@ float W_Arc_Beam_Send(entity to, float sf) WriteByte(MSG_ENTITY, ENT_CLIENT_ARC_BEAM); // don't send group 1, 2, or 3 if this beam is for the local player - if((to == self.owner) || (to.enemy == self.owner)) { sf &= ~7; } + if((to == self.owner) || ((to.enemy == self.owner) && IS_SPEC(to))) { sf &= ~7; } WriteByte(MSG_ENTITY, sf); if(sf & 1) // starting location // not sent if beam is for owner