From 432ebd4c53c7444dfc1f41efacb0b064101f0132 Mon Sep 17 00:00:00 2001 From: ante185 <49555217+ante185@users.noreply.github.com> Date: Tue, 9 Apr 2024 22:22:19 +0200 Subject: [PATCH] Updates fn_initZones.sqf to remove the case sensitivity of the town-type check (#3188) * Update fn_initZones.sqf * removed case sensitivty of the town type check --- A3A/addons/core/functions/init/fn_initZones.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/A3A/addons/core/functions/init/fn_initZones.sqf b/A3A/addons/core/functions/init/fn_initZones.sqf index b3a6bca98b..9c530db66d 100644 --- a/A3A/addons/core/functions/init/fn_initZones.sqf +++ b/A3A/addons/core/functions/init/fn_initZones.sqf @@ -73,7 +73,7 @@ private _disabledTowns = getArray (_mapInfo/"disabledTowns"); {server setVariable [_x select 0,_x select 1]} forEach _townPopulations; private _hardCodedPopulation = _townPopulations isNotEqualTo []; -"(getText (_x >> ""type"") in [""NameCityCapital"",""Namecitycapital"", ""NameCity"",""Namecity"", ""NameVillage"",""Namevillage"", ""CityCenter"",""Citycenter""]) && +"(toLower getText (_x >> ""type"") in [""namecitycapital"",""namecity"",""namevillage"",""citycenter""]) && !(getText (_x >> ""Name"") isEqualTo """") && !((configName _x) in _disabledTowns)" configClasses (configfile >> "CfgWorlds" >> worldName >> "Names") apply {