From c9e4912a2a74b139f54f35a1bc8eb105fb7a70cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D1=81=D0=BB=D0=B0=D0=B2=20?= =?UTF-8?q?=D0=A1=D1=83=D1=85=D0=BE=D0=B2?= <22411953+Vladislav4KZ@users.noreply.github.com> Date: Sat, 28 Aug 2021 21:53:47 +0600 Subject: [PATCH] client: backport con_fontnum from old engine --- engine/client/console.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engine/client/console.c b/engine/client/console.c index 45410973..e5009f9c 100644 --- a/engine/client/console.c +++ b/engine/client/console.c @@ -675,7 +675,9 @@ static void Con_LoadConchars( void ) Con_LoadConsoleFont( i, con.chars + i ); // select properly fontsize - if( refState.width <= 640 ) + if( con_fontnum->value >= 0 && con_fontnum->value <= CON_NUMFONTS - 1 ) + fontSize = con_fontnum->value; + else if( refState.width <= 640 ) fontSize = 0; else if( refState.width >= 1280 ) fontSize = 2;