]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapons.qc
More work on switching over to using entity field instead of item field
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapons.qc
index 9ec3b7ec0bac0cda0ea2c850350f48440bd6ffaf..501002f28a4c418a4d2c82f50b6bba321e604520 100644 (file)
@@ -239,12 +239,7 @@ void W_RandomWeapons(entity e, float n)
        e.weapons = result;
 }
 
-string W_Name(float weaponid)
+string W_Name(float weaponid) // WEAPONTODO: make into a macro
 {
        return (get_weaponinfo(weaponid)).message;
 }
-
-float W_AmmoItemCode(float wpn)
-{
-       return (get_weaponinfo(wpn)).items & IT_AMMO; // WEAPONTODO
-}