]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix menu trying to open <campaign_file.txt>.en
authorterencehill <piuntn@gmail.com>
Wed, 14 Jun 2023 10:40:42 +0000 (12:40 +0200)
committerterencehill <piuntn@gmail.com>
Wed, 14 Jun 2023 10:40:42 +0000 (12:40 +0200)
qcsrc/lib/i18n.qh

index 3069f519dc33454a5310a68a52e9ba16d2570fd8..657cadac61b4ffa7754ee0e5f148110812a8ec5e 100644 (file)
@@ -14,7 +14,7 @@ ERASEABLE
 string language_filename(string s)
 {
        string fn = prvm_language;
-       if (fn == "" || fn == "dump") return s;
+       if (fn == "" || fn == "en" || fn == "dump") return s;
        fn = strcat(s, ".", fn);
        int fh = fopen(fn, FILE_READ);
        if (fh >= 0)