From 71d3b5ddc7cd8f143095fac6be7ef27769c441ad Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 14 Apr 2011 17:33:43 +0300 Subject: [PATCH] Remove a positioning change that only causes trouble now --- data/qcsrc/client/sbar.qc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/data/qcsrc/client/sbar.qc b/data/qcsrc/client/sbar.qc index 06e2a27e..b5360a35 100644 --- a/data/qcsrc/client/sbar.qc +++ b/data/qcsrc/client/sbar.qc @@ -113,8 +113,7 @@ void Sbar_DrawXNum (vector pos, float num, float digits, float showminusplus, fl { str = substring(str, l - digits, 999); l = strlen(str); - } else if(l < digits) - pos_x += (digits - l) * lettersize; + } if (highlighted == 1) { vector hl_size; @@ -3037,8 +3036,8 @@ void Sbar_Draw (void) // health x = health; drawpic(health_pos + '22 16 0', "gfx/hud/sb_health", '32 32 0', '1 1 1', sbar_alpha_fg, DRAWFLAG_NORMAL); - if(x < 100) health_pos_x -= 9; // always center - if(x < 10) health_pos_x -= 11; // always center + //if(x < 100) health_pos_x -= 9; // always center + //if(x < 10) health_pos_x -= 11; // always center Sbar_DrawXNum_Colored(health_pos, x, 22, sbar_alpha_fg); // ammo -- 2.39.2