]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Also check to make sure that the client is really a spectator
authorSamual Lenks <samual@xonotic.org>
Tue, 18 Feb 2014 23:10:33 +0000 (18:10 -0500)
committerSamual Lenks <samual@xonotic.org>
Tue, 18 Feb 2014 23:10:33 +0000 (18:10 -0500)
qcsrc/common/weapons/w_arc.qc

index a11f722d054cee27a842ee22425f428c311b8a27..3eaa17b8c60ba0bd3d5d0fe70aa7b8d5cc7d81c9 100644 (file)
@@ -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