Skip to content

Commit

Permalink
- fallback to console font in case of missing small font
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk authored and coelckers committed Oct 16, 2019
1 parent d44d91d commit c45e8b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gamedata/fonts/v_font.cpp
Expand Up @@ -1719,6 +1719,10 @@ void V_InitFonts()
I_FatalError("Console font not found.");
}
// SmallFont and SmallFont2 have no default provided by the engine. BigFont only has in non-Raven games.
if (OriginalSmallFont == nullptr)
{
OriginalSmallFont = ConFont;
}
if (SmallFont == nullptr)
{
SmallFont = OriginalSmallFont;
Expand Down

0 comments on commit c45e8b3

Please sign in to comment.