engine: client: font: fix CL_DrawStringLen
This commit is contained in:
parent
d14e486721
commit
2225915702
1 changed files with 1 additions and 1 deletions
|
@ -286,7 +286,7 @@ void CL_DrawStringLen( cl_font_t *font, const char *s, int *width, int *height,
|
|||
|
||||
if( number )
|
||||
{
|
||||
draw_len += font->charWidths[*s];
|
||||
draw_len += font->charWidths[number];
|
||||
|
||||
if( draw_len > *width )
|
||||
*width = draw_len;
|
||||
|
|
Loading…
Add table
Reference in a new issue