From 22a864a0c9fefa56209f7f0e6e62667ba10c7eb7 Mon Sep 17 00:00:00 2001 From: Vasilii Rogin Date: Thu, 18 Apr 2024 22:55:17 +0300 Subject: [PATCH] Ignore cities count if CitiesLimitFix is enabled --- src/worldmap.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/worldmap.cc b/src/worldmap.cc index 4d2495f..a913665 100644 --- a/src/worldmap.cc +++ b/src/worldmap.cc @@ -2530,7 +2530,10 @@ static int wmAreaInit() configFree(&cfg); - if (wmMaxAreaNum != CITY_COUNT) { + bool isCitiesLimitFixEnabled = true; + configGetBool(&gSfallConfig, SFALL_CONFIG_MISC_KEY, SFALL_CONFIG_CITIES_LIMIT_FIX, &isCitiesLimitFixEnabled); + + if (!isCitiesLimitFixEnabled && wmMaxAreaNum != CITY_COUNT) { showMesageBox("\nwmAreaInit::Error loading Cities!"); exit(1); }