mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-31 02:14:09 +03:00
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:
committed by
Misa Elizabeth Kai
parent
25feb9dbb5
commit
b030ce568f
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user