Skip to content

Commit

Permalink
Fix multiline CL_CenterPrint
Browse files Browse the repository at this point in the history
After recent refactoring it sets `clgame.centerPrint.lines` to 1 and doesn't update it anymore.
  • Loading branch information
w23 authored Feb 24, 2023
1 parent b6347d1 commit 387095d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions engine/client/cl_font.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ void CL_DrawStringLen( cl_font_t *font, const char *s, int *width, int *height,
draw_len = 0;
if( !FBitSet( flags, FONT_DRAW_NOLF ))
{
clgame.centerPrint.lines++;
if( height )
*height += font->charHeight;
}
Expand Down

0 comments on commit 387095d

Please sign in to comment.