From: MirceaKitsune Date: Thu, 17 Nov 2011 11:08:11 +0000 (+0200) Subject: Since fuel is the only ammo, always show its count on the HUD X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=533228c167db98ff7c1cb2f1b4ef9779a6d4003b;p=voretournament%2Fvoretournament.git Since fuel is the only ammo, always show its count on the HUD --- 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);