Remove a positioning change that only causes trouble now
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 14 Apr 2011 14:33:43 +0000 (17:33 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 14 Apr 2011 14:33:43 +0000 (17:33 +0300)
data/qcsrc/client/sbar.qc

index 06e2a27..b5360a3 100644 (file)
@@ -113,8 +113,7 @@ void Sbar_DrawXNum (vector pos, float num, float digits, float showminusplus, fl
        {\r
                str = substring(str, l - digits, 999);\r
                l = strlen(str);\r
-       } else if(l < digits)\r
-               pos_x += (digits - l) * lettersize;\r
+       }\r
 \r
        if (highlighted == 1) {\r
                vector hl_size;\r
@@ -3037,8 +3036,8 @@ void Sbar_Draw (void)
                // health\r
                x = health;\r
                drawpic(health_pos + '22 16 0', "gfx/hud/sb_health", '32 32 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL);\r
-               if(x < 100) health_pos_x -= 9; // always center\r
-               if(x < 10) health_pos_x -= 11; // always center\r
+               //if(x < 100) health_pos_x -= 9; // always center\r
+               //if(x < 10) health_pos_x -= 11; // always center\r
                Sbar_DrawXNum_Colored(health_pos, x, 22, sbar_alpha_fg);\r
 \r
                // ammo\r