2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2025-01-11 02:45:46 +01:00

client: backport con_fontnum from old engine

This commit is contained in:
Владислав Сухов 2021-08-28 21:53:47 +06:00 committed by Alibek Omarov
parent e5e1570aed
commit c9e4912a2a

View File

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