1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Fix iflang, loadtext and setfont not working with uppercase

For example, pt_PT/pt_BR needs to work as well, and now it does.
This commit is contained in:
Dav999 2023-07-23 00:06:26 +02:00 committed by Misa Elizabeth Kai
parent 8d8a5eb605
commit b9ef6bfc2f

View file

@ -2409,13 +2409,13 @@ void scriptclass::run(void)
{ {
if (map.custommode) if (map.custommode)
{ {
loc::lang_custom = words[1]; loc::lang_custom = raw_words[1];
loc::loadtext_custom(NULL); loc::loadtext_custom(NULL);
} }
} }
else if (words[0] == "iflang") else if (words[0] == "iflang")
{ {
if (loc::lang == words[1]) if (loc::lang == raw_words[1])
{ {
loadalts("custom_" + words[2], "custom_" + raw_words[2]); loadalts("custom_" + words[2], "custom_" + raw_words[2]);
position--; position--;
@ -2430,7 +2430,7 @@ void scriptclass::run(void)
} }
else else
{ {
font::set_level_font(words[1].c_str()); font::set_level_font(raw_words[1].c_str());
} }
#endif #endif
} }