From 533228c167db98ff7c1cb2f1b4ef9779a6d4003b Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 17 Nov 2011 13:08:11 +0200 Subject: [PATCH] Since fuel is the only ammo, always show its count on the HUD --- data/qcsrc/client/hud.qc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/data/qcsrc/client/hud.qc b/data/qcsrc/client/hud.qc index 82ce78b9..e0723db1 100644 --- a/data/qcsrc/client/hud.qc +++ b/data/qcsrc/client/hud.qc @@ -1981,12 +1981,15 @@ void Sbar_Status() float i; for (i = 0; i < 1; ++i) { - if (stat_items & GetAmmoItemCode(i)) + // Since fuel is currently the only ammo, always show it on the HUD. + // In case we ever get more ammos, comment the line below back in. + // if (stat_items & GetAmmoItemCode(i)) { a = getstati(GetAmmoStat(i)); // how much ammo do we have of type i? drawpic(pos - '98 18 0', GetAmmoPicture(i), '20 20 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); weapon_clipsize = getstati(STAT_WEAPON_CLIPSIZE); - // if the weapon we're holding is reloadable, show both its ammo and load + + // if the weapon we're holding is reloadable, show both its ammo and load if(weapon_clipsize) { weapon_clipload = getstati(STAT_WEAPON_CLIPLOAD); -- 2.39.2