engine: client: font: fix CL_DrawStringLen

This commit is contained in:
Alibek Omarov 2023-02-04 20:54:17 +03:00
parent d14e486721
commit 2225915702

View File

@ -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;