Ignore cities count if CitiesLimitFix is enabled

This commit is contained in:
Vasilii Rogin 2024-04-18 22:55:17 +03:00
parent 252d7fe83e
commit 22a864a0c9
1 changed files with 4 additions and 1 deletions

View File

@ -2530,7 +2530,10 @@ static int wmAreaInit()
configFree(&cfg); 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!"); showMesageBox("\nwmAreaInit::Error loading Cities!");
exit(1); exit(1);
} }