mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: client: font: fix CL_DrawStringLen
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user