From 7f2d79349b21b265f9d87393527d30257b1ba058 Mon Sep 17 00:00:00 2001 From: Federico Cecchetto Date: Sat, 3 Sep 2022 02:11:00 +0200 Subject: [PATCH] Dont always load eng ff --- src/client/component/fastfiles.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/client/component/fastfiles.cpp b/src/client/component/fastfiles.cpp index d364f198..0f9ad256 100644 --- a/src/client/component/fastfiles.cpp +++ b/src/client/component/fastfiles.cpp @@ -110,9 +110,7 @@ namespace fastfiles if (localized) { const auto language = game::SEH_GetCurrentLanguageCode(); - try_load_zone(language + "_"s + name, false); - - if (language != "eng"s) + if (!try_load_zone(language + "_"s + name, false) && language != "eng"s) { try_load_zone("eng_" + name, false); } @@ -327,17 +325,12 @@ namespace fastfiles if (localized) { const auto language = game::SEH_GetCurrentLanguageCode(); - const auto eng_name = "eng_"s + name; const auto lang_name = language + "_"s + name; if (fastfiles::exists(lang_name)) { add_custom_level_load_zone(load, lang_name.data(), false, size_est); } - else if (fastfiles::exists(eng_name)) - { - add_custom_level_load_zone(load, eng_name.data(), false, size_est); - } } game::DB_LevelLoadAddZone(load, name, game::DB_ZONE_GAME | game::DB_ZONE_CUSTOM, size_est);