- added a workaround for mods using the name CONFONT directly.

In the old system it just loaded the font a second time, but with the folder based setup there is no file named CONFONT anymore so it needs to be dealt with explicitly.
This commit is contained in:
Christoph Oelckers 2019-02-26 19:19:03 +01:00
parent e8f690116b
commit 90ab830ff9

View file

@ -855,6 +855,7 @@ int stripaccent(int code)
FFont *V_GetFont(const char *name, const char *fontlumpname)
{
if (!stricmp(name, "CONFONT")) name = "ConsoleFont"; // several mods have used the name CONFONT directly and effectively duplicated the font.
FFont *font = FFont::FindFont (name);
if (font == nullptr)
{