Make main game content use interface font instead of 8x8 font

If a custom level doesn't specify a font, it should be the 8x8 font.
But the main game can't specify a font, it's just the interface font
because that's for the language that the game is in.
This commit is contained in:
Dav999-v
2023-01-21 03:27:55 +01:00
committed by Misa Elizabeth Kai
parent 25feb9dbb5
commit b030ce568f
4 changed files with 51 additions and 24 deletions

View File

@@ -2429,11 +2429,11 @@ void scriptclass::run(void)
#ifndef NO_CUSTOM_LEVELS
if (words[1] == "")
{
font::set_custom_font(cl.level_font_name.c_str());
font::set_level_font(cl.level_font_name.c_str());
}
else
{
font::set_custom_font(words[1].c_str());
font::set_level_font(words[1].c_str());
}
#endif
}
@@ -2592,6 +2592,17 @@ void scriptclass::startgamemode(const enum StartMode mode)
game.gamestate = GAMEMODE;
}
switch (mode)
{
case Start_EDITOR:
case Start_EDITORPLAYTESTING:
case Start_CUSTOM:
case Start_CUSTOM_QUICKSAVE:
break;
default:
font::set_level_font_interface();
}
game.jumpheld = true;
switch (mode)