]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/all.qc
Clean up ammo sorting in the HUD to not reference items directly
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / all.qc
index 70937716490921edcd0e01e07b889bf97ab565e0..effa087e65c57ce2efabc3d2a5d9ad54622d7c74 100644 (file)
@@ -233,20 +233,6 @@ entity GetAmmoItem(Resource ammotype)
 }
 
 #ifdef CSQC
-Resource GetAmmoTypeFromNum(int i)
-{
-       switch (i)
-       {
-               case 0: return RES_SHELLS;
-               case 1: return RES_BULLETS;
-               case 2: return RES_ROCKETS;
-               case 3: return RES_CELLS;
-               case 4: return RES_PLASMA;
-               case 5: return RES_FUEL;
-               default: return RES_NONE;
-       }
-}
-
 int GetAmmoStat(Resource ammotype)
 {
        switch (ammotype)