]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Remove IT_AMMO
authorMario <mario@smbclan.net>
Tue, 27 Dec 2016 08:20:35 +0000 (18:20 +1000)
committerMario <mario@smbclan.net>
Tue, 27 Dec 2016 08:20:35 +0000 (18:20 +1000)
qcsrc/common/items/item.qh
qcsrc/common/t_items.qc
qcsrc/server/weapons/weaponsystem.qc

index bac127059daa12c6db32695d90aea95cf22f28ff..f3aa0cec26b067f47244b96c4af521028b677991 100644 (file)
@@ -34,7 +34,6 @@ const int IT_SUPERWEAPON                              = BIT(21); // suit
 const int IT_STRENGTH                                  = BIT(22);
 
 // item masks
-const int IT_AMMO                              = IT_FUEL | IT_SHELLS | IT_NAILS | IT_ROCKETS | IT_CELLS | IT_PLASMA;
 const int IT_UNLIMITED_AMMO                    = IT_UNLIMITED_WEAPON_AMMO | IT_UNLIMITED_SUPERWEAPONS;
 const int IT_PICKUPMASK                        = IT_UNLIMITED_AMMO | IT_JETPACK | IT_FUEL_REGEN; // strength and invincible are handled separately
 
index 19aa6ba54aa3136348469a5cf5912a0a077849a3..cacbfdcea855fe4bd33cf839e8011b65d5f5f0a6 100644 (file)
@@ -393,7 +393,7 @@ bool have_pickup_item(entity this)
                if(autocvar_g_pickup_items == 0)
                        return false;
                if(g_weaponarena)
-                       if(this.weapons || (this.items & IT_AMMO)) // no item or ammo pickups in weaponarena
+                       if(this.weapons || this.itemdef.instanceOfAmmo) // no item or ammo pickups in weaponarena
                                return false;
        }
        return true;
index 7dbdae6838cb2d5adcd632b9f67404b1f9359021..ad479824ec76f654a21877f546b0c273a4fff525 100644 (file)
@@ -447,7 +447,6 @@ void W_WeaponFrame(Player actor, .entity weaponentity)
                PS(actor).m_switchingweapon = WEP_Null;
                this.state = WS_CLEAR;
                actor.weaponname = "";
-               // actor.items &= ~IT_AMMO;
                return;
        }