mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-15 05:29:51 +01:00
engine: client: font: fix CL_DrawStringLen
This commit is contained in:
parent
d14e486721
commit
2225915702
@ -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…
Reference in New Issue
Block a user