From: terencehill Date: Wed, 14 Jun 2023 10:40:42 +0000 (+0200) Subject: Fix menu trying to open .en X-Git-Tag: xonotic-v0.8.6~10 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a7e0d5d2d5b4b4e5d094fb7331e5d39f0224b892;p=xonotic%2Fxonotic-data.pk3dir.git Fix menu trying to open .en --- diff --git a/qcsrc/lib/i18n.qh b/qcsrc/lib/i18n.qh index 3069f519d..657cadac6 100644 --- a/qcsrc/lib/i18n.qh +++ b/qcsrc/lib/i18n.qh @@ -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)