]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compile
authorMario <mario@smbclan.net>
Tue, 26 Dec 2017 11:34:39 +0000 (21:34 +1000)
committerMario <mario@smbclan.net>
Tue, 26 Dec 2017 11:34:39 +0000 (21:34 +1000)
qcsrc/server/weapons/tracing.qc

index 1d58aa75a5d9d4319e01d9a1d9f484cc4a3df272..f09ee828e9354ac311f8b9b1a634e6047f806627 100644 (file)
@@ -137,8 +137,8 @@ void W_SetupShot_Dir_ProjectileSize_Range(entity ent, .entity weaponentity, vect
                int held_weapons = 0; // HACK: muffle weapon sounds slightly while dual wielding!
                for(int slot = 0; slot < MAX_WEAPONSLOTS; ++slot)
                {
-                       .entity weaponentity = weaponentities[slot];
-                       if(ent.(weaponentity) && ent.(weaponentity).m_switchweapon != WEP_Null)
+                       .entity wep_ent = weaponentities[slot];
+                       if(ent.(wep_ent) && ent.(wep_ent).m_switchweapon != WEP_Null)
                                ++held_weapons;
                }
                sound (ent, chan, snd, ((held_weapons > 1) ? VOL_BASE * 0.7 : VOL_BASE), ATTN_NORM);