1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 07:44:38 +01:00

improve language load fail behaviour

improve currencies
fix bug in supported glyph check
This commit is contained in:
IntelOrca
2015-11-26 18:28:52 +00:00
parent 46924bc9eb
commit 7ea0e2d6a3
6 changed files with 22 additions and 9 deletions

View File

@@ -173,6 +173,11 @@ int language_open(int id)
gCurrentTTFFontSet = LanguagesDescriptors[id].font;
if (!ttf_initialise()) {
log_warning("Unable to initialise TrueType fonts.");
// Fall back to sprite font
gUseTrueTypeFont = false;
gCurrentTTFFontSet = nullptr;
return 0;
}
}