]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/hud.qc
EVEN FURTHER cleanup of shockwave blast function :D
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / hud.qc
index 63d96eee6117035dfec4fb4c83579adfca5f1b43..24c9658abe157307759100f1313836ef9e851399 100644 (file)
@@ -427,7 +427,7 @@ float GetAmmoTypeForWep(float i) // WEAPONTODO
        {
                case WEP_SHOCKWAVE: return 0;
                case WEP_UZI: return 1;
-               case WEP_GRENADE_LAUNCHER: return 2;
+               case WEP_MORTAR: return 2;
                case WEP_MINE_LAYER: return 2;
                case WEP_ELECTRO: return 3;
                case WEP_CRYLINK: return 3;
@@ -783,7 +783,7 @@ void HUD_Weapons(void)
                        }
 
                        // draw ammo status bar
-                       if(autocvar_hud_panel_weapons_ammo && self.weapon != WEP_TUBA && self.weapon != WEP_LASER && self.weapon != WEP_PORTO)
+                       if(autocvar_hud_panel_weapons_ammo && self.weapon != WEP_TUBA && self.weapon != WEP_BLASTER && self.weapon != WEP_PORTO) // WEAPONTODO: detect weapons which don't have ammo automatically
                        {
                                a = 0;
                                ammo_type = GetAmmoTypeForWep(self.weapon);