From b9ef6bfc2f19ad7b97422fe2660d66a80ddcc43a Mon Sep 17 00:00:00 2001 From: Dav999 Date: Sun, 23 Jul 2023 00:06:26 +0200 Subject: [PATCH] Fix iflang, loadtext and setfont not working with uppercase For example, pt_PT/pt_BR needs to work as well, and now it does. --- desktop_version/src/Script.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/desktop_version/src/Script.cpp b/desktop_version/src/Script.cpp index e4cee6e5..7bacf68e 100644 --- a/desktop_version/src/Script.cpp +++ b/desktop_version/src/Script.cpp @@ -2409,13 +2409,13 @@ void scriptclass::run(void) { if (map.custommode) { - loc::lang_custom = words[1]; + loc::lang_custom = raw_words[1]; loc::loadtext_custom(NULL); } } else if (words[0] == "iflang") { - if (loc::lang == words[1]) + if (loc::lang == raw_words[1]) { loadalts("custom_" + words[2], "custom_" + raw_words[2]); position--; @@ -2430,7 +2430,7 @@ void scriptclass::run(void) } else { - font::set_level_font(words[1].c_str()); + font::set_level_font(raw_words[1].c_str()); } #endif }