Skip to content

Commit

Permalink
Updates fn_initZones.sqf to remove the case sensitivity of the town-t…
Browse files Browse the repository at this point in the history
…ype check (#3188)

* Update fn_initZones.sqf

* removed case sensitivty of the town type check
  • Loading branch information
ante185 authored Apr 9, 2024
1 parent 78d6bf0 commit 432ebd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion A3A/addons/core/functions/init/fn_initZones.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 432ebd4

Please sign in to comment.