\r
if(l > digits)\r
{\r
- str = substring(str, l-digits, 999);\r
+ str = substring(str, l - digits, 999);\r
l = strlen(str);\r
} else if(l < digits)\r
- pos_x += (digits-l) * lettersize;\r
+ pos_x += (digits - l) * lettersize;\r
\r
if (highlighted == 1) {\r
vector hl_size;\r
hl_size_x = hl_size_x + vsize_x;\r
\r
vector hl_pos;\r
- hl_pos_x = pos_x - lettersize/10;\r
- hl_pos_y = pos_y - lettersize/20;\r
+ hl_pos_x = pos_x - lettersize / 10;\r
+ hl_pos_y = pos_y - lettersize / 20;\r
hl_pos_z = 0;\r
\r
drawpic(hl_pos, strcat("gfx/hud/sb_highlight_", l_length), hl_size, '1 1 1', alpha, dflags);\r
pos_x += lettersize;\r
}\r
\r
- for(i = 0; i < l; ++i)\r
- {\r
- tmp = substring(str, i, 1);\r
- if (stroke == 1)\r
- drawstring(pos, tmp, vsize, rgb, alpha, dflags);\r
- drawstring(pos, tmp, vsize, num_color, alpha, dflags);\r
- pos_x += lettersize;\r
- }\r
+ if (stroke == 1)\r
+ drawstring(pos, str, vsize, rgb, alpha, dflags);\r
+ drawstring(pos, str, vsize, num_color, alpha, dflags);\r
}\r
\r
void Sbar_DrawXNum_Colored (vector pos, float x, float lettersize, float alpha)\r