]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Show two lines on HUD while the weapon is being reloaded, instead of -1
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 28 Feb 2011 16:52:36 +0000 (18:52 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 28 Feb 2011 16:52:36 +0000 (18:52 +0200)
data/qcsrc/client/sbar.qc

index ac11cd040c149a65dd29ebe5ba82321aa8847f39..fb383ad753011e020f30f3c928919863c6ec3bd3 100644 (file)
@@ -3073,7 +3073,10 @@ void Sbar_Draw (void)
                                        if(weapon_clipsize)\r
                                        {\r
                                                weapon_clipload = getstati(STAT_WEAPON_CLIPLOAD);\r
-                                               Sbar_DrawXNum(pos - '132 23 0', weapon_clipload, 2, 0, 16, '1 1 1', 0, 0, sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+                                               if(weapon_clipload < 0)\r
+                                                       drawstring(pos - '124 23 0', "- -", '16 16 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
+                                               else\r
+                                                       Sbar_DrawXNum(pos - '132 23 0', weapon_clipload, 2, 0, 16, '1 1 1', 0, 0, sbar_alpha_fg, DRAWFLAG_NORMAL);\r
                                                Sbar_DrawXNum(pos - '137 7 0', a, 3, 0, 12, '1 1 1', 0, 0, sbar_alpha_fg, DRAWFLAG_NORMAL);\r
                                        }\r
                                        else\r