]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Since fuel is the only ammo, always show its count on the HUD
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 17 Nov 2011 11:08:11 +0000 (13:08 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 17 Nov 2011 11:08:11 +0000 (13:08 +0200)
data/qcsrc/client/hud.qc

index 82ce78b94c850f77fe8be8d5759c5450fa160280..e0723db1625cf9db6298071587f14b920ef82d0e 100644 (file)
@@ -1981,12 +1981,15 @@ void Sbar_Status()
                float i;\r
                for (i = 0; i < 1; ++i)\r
                {\r
-                       if (stat_items & GetAmmoItemCode(i))\r
+                       // Since fuel is currently the only ammo, always show it on the HUD.\r
+                       // In case we ever get more ammos, comment the line below back in.\r
+                       // if (stat_items & GetAmmoItemCode(i))\r
                        {\r
                                a = getstati(GetAmmoStat(i)); // how much ammo do we have of type i?\r
                                drawpic(pos - '98 18 0', GetAmmoPicture(i), '20 20 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
                                weapon_clipsize = getstati(STAT_WEAPON_CLIPSIZE);\r
-                                       // if the weapon we're holding is reloadable, show both its ammo and load\r
+\r
+                               // if the weapon we're holding is reloadable, show both its ammo and load\r
                                if(weapon_clipsize)\r
                                {\r
                                        weapon_clipload = getstati(STAT_WEAPON_CLIPLOAD);\r