Browse Source

engine: client: fix HUD font loading

pull/2/head
Alibek Omarov 2 years ago
parent
commit
39fd30a472
  1. 13
      engine/client/cl_scrn.c

13
engine/client/cl_scrn.c

@ -603,13 +603,11 @@ void SCR_LoadCreditsFont( void )
} }
} }
if( !success && !Con_LoadVariableWidthFont( "gfx/creditsfont.fnt", font, 1.0f, TF_FONT )) if( !success )
{ success = Con_LoadVariableWidthFont( "gfx/creditsfont.fnt", font, 1.0f, TF_FONT );
if( !Con_LoadFixedWidthFont( "gfx/conchars", font, 1.0f, TF_FONT ))
{ if( !success )
Con_DPrintf( S_ERROR "failed to load HUD font\n" ); success = Con_LoadFixedWidthFont( "gfx/conchars", font, 1.0f, TF_FONT );
}
}
// copy font size for client.dll // copy font size for client.dll
if( success ) if( success )
@ -621,6 +619,7 @@ void SCR_LoadCreditsFont( void )
for( i = 0; i < ARRAYSIZE( cls.creditsFont.charWidths ); i++ ) for( i = 0; i < ARRAYSIZE( cls.creditsFont.charWidths ); i++ )
clgame.scrInfo.charWidths[i] = cls.creditsFont.charWidths[i]; clgame.scrInfo.charWidths[i] = cls.creditsFont.charWidths[i];
} }
else Con_DPrintf( S_ERROR "failed to load HUD font\n" );
} }
/* /*

Loading…
Cancel
Save