]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix precaching on server for Arc attack sound
authorSamual Lenks <samual@xonotic.org>
Thu, 27 Feb 2014 03:15:05 +0000 (22:15 -0500)
committerSamual Lenks <samual@xonotic.org>
Thu, 27 Feb 2014 03:15:05 +0000 (22:15 -0500)
qcsrc/common/weapons/w_arc.qc

index 94e4d50b844388c217d54af59ba8e6b01ab67a9a..48b16732dab31f261e609d8a972fc0987d3a2d22 100644 (file)
@@ -98,10 +98,7 @@ float W_Arc_Beam_Send(entity to, float sf)
        //    it always figures this information out for itself with csqc code.
        // - Spectating the owner also truncates this information.
        float drawlocal = ((to == self.owner) || ((to.enemy == self.owner) && IS_SPEC(to)));
-       if(drawlocal)
-       {
-               sf &= ~ARC_SF_LOCALMASK;
-       }
+       if(drawlocal) { sf &= ~ARC_SF_LOCALMASK; }
 
        WriteByte(MSG_ENTITY, sf);
 
@@ -596,9 +593,7 @@ float W_Arc(float req)
                        precache_model("models/weapons/g_arc.md3");
                        precache_model("models/weapons/v_arc.md3");
                        precache_model("models/weapons/h_arc.iqm");
-                       //precache_sound("weapons/arc_fire.wav");
-                       //precache_sound("weapons/arc_fire2.wav");
-                       //precache_sound("weapons/arc_impact.wav");
+                       precache_sound("weapons/lgbeam_fire.wav");
                        if(!arc_shotorigin[0])
                        {
                                arc_shotorigin[0] = shotorg_adjust_values(CL_Weapon_GetShotOrg(WEP_ARC), FALSE, FALSE, 1);