From: MirceaKitsune Date: Mon, 28 Feb 2011 16:52:36 +0000 (+0200) Subject: Show two lines on HUD while the weapon is being reloaded, instead of -1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ed639554c46da6813d4bffefd5fc416158d60cf5;p=voretournament%2Fvoretournament.git Show two lines on HUD while the weapon is being reloaded, instead of -1 --- diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index ac11cd04..fb383ad7 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -3073,7 +3073,10 @@ void Sbar_Draw (void) if(weapon_clipsize) { weapon_clipload = getstati(STAT_WEAPON_CLIPLOAD); - Sbar_DrawXNum(pos - '132 23 0', weapon_clipload, 2, 0, 16, '1 1 1', 0, 0, sbar_alpha_fg, DRAWFLAG_NORMAL); + if(weapon_clipload < 0) + 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