From cc7deb90eea0bbfb580d6689517dc611c21d0726 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Mon, 28 Feb 2011 18:54:50 +0200 Subject: [PATCH] Code comments --- data/qcsrc/client/sbar.qc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index fb383ad7..1ee371a2 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -3070,19 +3070,18 @@ void Sbar_Draw (void) 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(weapon_clipsize) { weapon_clipload = getstati(STAT_WEAPON_CLIPLOAD); - if(weapon_clipload < 0) + if(weapon_clipload < 0) // we're reloading drawstring(pos - '124 23 0', "- -", '16 16 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); else Sbar_DrawXNum(pos - '132 23 0', weapon_clipload, 2, 0, 16, '1 1 1', 0, 0, sbar_alpha_fg, DRAWFLAG_NORMAL); Sbar_DrawXNum(pos - '137 7 0', a, 3, 0, 12, '1 1 1', 0, 0, sbar_alpha_fg, DRAWFLAG_NORMAL); } else - { Sbar_DrawXNum(pos - '144 16 0', a, 3, 0, 16, '1 1 1', 0, 0, sbar_alpha_fg, DRAWFLAG_NORMAL); - } } } } -- 2.39.2