Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General - Replace toLower with toLowerANSI where applicable #9790

Merged
merged 12 commits into from
Mar 7, 2024
4 changes: 2 additions & 2 deletions addons/advanced_throwing/functions/fnc_getMuzzle.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@

params ["_magazineClassname"];

_magazineClassname = toLower _magazineClassname;
_magazineClassname = toLowerANSI _magazineClassname;
private _throwMuzzles = getArray (configFile >> "CfgWeapons" >> "Throw" >> "muzzles");

_throwMuzzles = _throwMuzzles select {_magazineClassname in ((getArray (configFile >> "CfgWeapons" >> "Throw" >> _x >> "magazines")) apply {toLower _x})};
_throwMuzzles = _throwMuzzles select {_magazineClassname in ((getArray (configFile >> "CfgWeapons" >> "Throw" >> _x >> "magazines")) apply {toLowerANSI _x})};

[_throwMuzzles select 0, ""] select (_throwMuzzles isEqualTo [])
4 changes: 2 additions & 2 deletions addons/aircraft/functions/fnc_droneModifyWaypoint.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
*
* Public: No
*/

params ["_vehicle", "_group", "_type", "_value"];
TRACE_4("droneModifyWaypoint",_vehicle,_group,_type,_value);

private _index = (currentWaypoint _group) min count waypoints _group;
private _waypoint = [_group, _index];
switch (toLower _type) do {
switch (toLowerANSI _type) do {
case ("height"): {
private _pos = waypointPosition _waypoint;
_pos set [2, _value];
Expand Down
4 changes: 2 additions & 2 deletions addons/arsenal/functions/fnc_addListBoxItem.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

params ["_configCategory", "_className", "_ctrlPanel", ["_pictureEntryName", "picture", [""]]];

private _skip = GVAR(favoritesOnly) && {!(_className in GVAR(currentItems))} && {!((toLower _className) in GVAR(favorites))};
private _skip = GVAR(favoritesOnly) && {!(_className in GVAR(currentItems))} && {!((toLowerANSI _className) in GVAR(favorites))};
if (_skip) then {
switch (GVAR(currentLeftPanel)) do {
case IDC_buttonPrimaryWeapon: {
Expand Down Expand Up @@ -57,7 +57,7 @@ _ctrlPanel lbSetPicture [_lbAdd, _itemPicture];
_ctrlPanel lbSetPictureRight [_lbAdd, ["", _modPicture] select GVAR(enableModIcons)];
_ctrlPanel lbSetTooltip [_lbAdd, format ["%1\n%2", _displayName, _className]];

if ((toLower _className) in GVAR(favorites)) then {
if ((toLowerANSI _className) in GVAR(favorites)) then {
_ctrlPanel lbSetColor [_lbAdd, FAVORITES_COLOR];
_ctrlPanel lbSetSelectColor [_lbAdd, FAVORITES_COLOR];
};
2 changes: 1 addition & 1 deletion addons/arsenal/functions/fnc_baseWeapon.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
params [["_weapon", "", [""]]];

// Check if item is cached
(uiNamespace getVariable QGVAR(baseWeaponNameCache)) getOrDefaultCall [toLower _weapon, {
(uiNamespace getVariable QGVAR(baseWeaponNameCache)) getOrDefaultCall [toLowerANSI _weapon, {
private _cfgWeapons = configfile >> "CfgWeapons";
private _config = _cfgWeapons >> _weapon;

Expand Down
4 changes: 2 additions & 2 deletions addons/arsenal/functions/fnc_fillRightPanel.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if (GVAR(favoritesOnly)) then {
private _fnc_fillRightContainer = {
params ["_configCategory", "_className", ["_isUnique", false, [false]], ["_unknownOrigin", false, [false]]];

if (GVAR(favoritesOnly) && {!(_className in _currentCargo)} && {!((toLower _className) in GVAR(favorites))}) exitWith {};
if (GVAR(favoritesOnly) && {!(_className in _currentCargo)} && {!((toLowerANSI _className) in GVAR(favorites))}) exitWith {};

// If item is not in the arsenal, it must be unique
if (!_isUnique && {!(_className in GVAR(virtualItemsFlat))}) then {
Expand Down Expand Up @@ -89,7 +89,7 @@ private _fnc_fillRightContainer = {
_ctrlPanel lnbSetPicture [[_lbAdd, 0], _picture];
_ctrlPanel lnbSetValue [[_lbAdd, 2], parseNumber _isUnique];
_ctrlPanel lnbSetTooltip [[_lbAdd, 0], format ["%1\n%2", _displayName, _className]];
if ((toLower _className) in GVAR(favorites)) then {
if ((toLowerANSI _className) in GVAR(favorites)) then {
_ctrlPanel lnbSetColor [[_lbAdd, 1], FAVORITES_COLOR];
_ctrlPanel lnbSetColorRight [[_lbAdd, 1], FAVORITES_COLOR];
};
Expand Down
4 changes: 2 additions & 2 deletions addons/arsenal/functions/fnc_onPanelDblClick.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ private _favorited = false;
// Favorites/blacklist will always be lowercase to handle configCase changes
private _item = "";
if (_isLnB) then {
_item = toLower (_control lnbData [_curSel, 0]);
_item = toLowerANSI (_control lnbData [_curSel, 0]);
} else {
_item = toLower (_control lbData _curSel);
_item = toLowerANSI (_control lbData _curSel);
};

if (_item in GVAR(favorites)) then {
Expand Down
2 changes: 1 addition & 1 deletion addons/arsenal/functions/fnc_removeSort.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ private _tabToChange = [];
_stringCount = count _currentID;

// Make sure to keep at least 1 sort per category, so make default sort not deletable
if ("ace_alphabetically" in toLower (_currentID select [0, _stringCount - 3])) then {
if ("ace_alphabetically" in toLowerANSI (_currentID select [0, _stringCount - 3])) then {
continue;
};

Expand Down
2 changes: 1 addition & 1 deletion addons/arsenal/functions/fnc_scanConfig.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,6 @@ private _baseWeaponCache = uiNamespace getVariable QGVAR(baseWeaponNameCache);
{
private _baseAttachment = configName (_cfgWeapons >> getText (_x >> "rhs_optic_base"));
if (_baseAttachment != "") then {
_baseWeaponCache set [toLower configName _x, _baseAttachment];
_baseWeaponCache set [toLowerANSI configName _x, _baseAttachment];
};
} forEach ("getText (_x >> 'rhs_optic_base') != ''" configClasses _cfgWeapons);
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ params ["", "_config"];
TRACE_1("statTextStatement_binoVisionMode",_config);

private _text = [];
private _visionModes = getArray (_config >> "visionMode") apply {toLower _x};
private _visionModes = getArray (_config >> "visionMode") apply {toLowerANSI _x};
{
if (_x in _visionModes) then {
_text pushBack (localize ([LSTRING(VisionNormal), LSTRING(VisionNight), LSTRING(VisionThermal)] select _forEachIndex));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ params ["", "_config"];
TRACE_1("statTextStatement_scopeVisionMode",_config);

private _opticsModes = ("true" configClasses (_config >> "ItemInfo" >> "OpticsModes")) apply {
private _visionMode = getArray (_x >> "visionMode") apply {toLower _x};
private _visionMode = getArray (_x >> "visionMode") apply {toLowerANSI _x};
[
getNumber (_x >> "useModelOptics") == 1, // Is in optics
_visionMode isEqualTo [], // Optional NVG
Expand Down
2 changes: 1 addition & 1 deletion addons/arsenal/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "\z\ace\addons\main\script_mod.hpp"

// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
#define DISABLE_COMPILE_CACHE
LinkIsGrim marked this conversation as resolved.
Show resolved Hide resolved
// #define ENABLE_PERFORMANCE_COUNTERS

#ifdef DEBUG_ENABLED_ARSENAL
Expand Down
2 changes: 1 addition & 1 deletion addons/attach/functions/fnc_detach.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ if (!_isChemlight) then {
_unit addItem _itemName;
};

if (toLower _itemName in ["b_ir_grenade", "o_ir_grenade", "i_ir_grenade"]) then {
if (toLowerANSI _itemName in ["b_ir_grenade", "o_ir_grenade", "i_ir_grenade"]) then {
// Hack for dealing with X_IR_Grenade effect not dissapearing on deleteVehicle
detach _attachedObject;
_attachedObject setPos ((getPos _unit) vectorAdd [0, 0, -1000]);
Expand Down
2 changes: 1 addition & 1 deletion addons/common/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ addMissionEventHandler ["PlayerViewChanged", {
private _position = [player] call FUNC(getUavControlPosition);
private _seatAI = objNull;
private _turret = [];
switch (toLower _position) do {
switch (toLowerANSI _position) do {
case (""): {
_UAV = objNull; // set to objNull if not actively controlling
};
Expand Down
10 changes: 5 additions & 5 deletions addons/common/dev/test_cfgPatches.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ private _allPatches = "(configName _x) select [0,3] == 'ace'" configClasses (con
// Get all units[]
private _allUnits = [];
{
_allUnits append ((getArray (_x >> "units")) apply { toLower _x });
_allUnits append ((getArray (_x >> "units")) apply { toLowerANSI _x });
} forEach _allPatches;
{
private _class = configFile >> "CfgVehicles" >> _x;
Expand All @@ -31,7 +31,7 @@ private _allUnits = [];
// Get all weapons[]
private _allWeapons = [];
{
_allWeapons append ((getArray (_x >> "weapons")) apply { toLower _x });
_allWeapons append ((getArray (_x >> "weapons")) apply { toLowerANSI _x });
} forEach _allPatches;
{
private _class = configFile >> "CfgWeapons" >> _x;
Expand All @@ -50,7 +50,7 @@ private _allWeapons = [];
private _vics = "(configName _x) select [0,3] == 'ace'" configClasses (configFile >> "CfgVehicles");
{
if (((getNumber (_x >> "scope")) == 2) || {((getNumber (_x >> "scopeCurator")) == 2)}) then {
if (!((toLower configName _x) in _allUnits)) then {
if (!((toLowerANSI configName _x) in _allUnits)) then {
WARNING_2("Not in any units[] - %1 from %2",configName _x,configSourceMod _x);
_testPass = false;
};
Expand All @@ -60,9 +60,9 @@ private _vics = "(configName _x) select [0,3] == 'ace'" configClasses (configFil
// Check if all public weapons are defined in a cfgPatch
private _weapons = "(configName _x) select [0,3] == 'ace'" configClasses (configFile >> "CfgWeapons");
{
private _type = toLower configName _x;
private _type = toLowerANSI configName _x;
if (((getNumber (_x >> "scope")) == 2) || {((getNumber (_x >> "scopeCurator")) == 2)}) then {
if (!((toLower configName _x) in _allWeapons)) then {
if (!((toLowerANSI configName _x) in _allWeapons)) then {
WARNING_2("Not in any weapons[] - %1 from %2",configName _x,configSourceMod _x);
_testPass = false;
};
Expand Down
8 changes: 4 additions & 4 deletions addons/common/dev/test_vehicleInventory.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ private _vehicles = configProperties [configFile >> "CfgVehicles", "(isClass _x)
private _glassesConfig = configFile >> "CfgGlasses" >> _name;
if (((!isClass _weaponConfig) || {(getNumber (_weaponConfig >> "type")) in [1,2,4]}) && {!isClass _glassesConfig}) then {
diag_log text format ["%1 -> TransportItems -> %2 = Bad", _vehType, _name];
if ("ace" in toLower (_vehType + _name)) then { _testPass = false; };
if ("ace" in toLowerANSI (_vehType + _name)) then { _testPass = false; };
};
};
} forEach (configProperties [_x >> "TransportItems", "isClass _x", true]);
Expand All @@ -23,23 +23,23 @@ private _vehicles = configProperties [configFile >> "CfgVehicles", "(isClass _x)
private _weaponConfig = configFile >> "CfgWeapons" >> _name;
if ((!isClass _weaponConfig) || {!((getNumber (_weaponConfig >> "type")) in [1,2,4])}) then {
diag_log text format ["%1 -> TransportWeapons -> %2 = Bad", _vehType, _name];
if ("ace" in toLower (_vehType + _name)) then { _testPass = false; };
if ("ace" in toLowerANSI (_vehType + _name)) then { _testPass = false; };
};
} forEach (configProperties [_x >> "TransportWeapons", "isClass _x", true]);
{
private _name = getText (_x >> "magazine");
private _magConfig = configFile >> "CfgMagazines" >> _name;
if ((!isClass _magConfig)) then {
diag_log text format ["%1 -> TransportMagazines -> %2 = Bad", _vehType, _name];
if ("ace" in toLower (_vehType + _name)) then { _testPass = false; };
if ("ace" in toLowerANSI (_vehType + _name)) then { _testPass = false; };
};
} forEach (configProperties [_x >> "TransportMagazines", "isClass _x", true]);
{
private _name = getText (_x >> "backpack");
private _vehConfig = configFile >> "CfgVehicles" >> _name;
if ((!isClass _vehConfig)) then {
diag_log text format ["%1 -> TransportBackpacks -> %2 = Bad", _vehType, _name];
if ("ace" in toLower (_vehType + _name)) then { _testPass = false; };
if ("ace" in toLowerANSI (_vehType + _name)) then { _testPass = false; };
};
} forEach (configProperties [_x >> "TransportBackpacks", "isClass _x", true]);
} forEach _vehicles;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

params ["_conditionName", "_conditionFunc"];

_conditionName = toLower _conditionName;
_conditionName = toLowerANSI _conditionName;
johnb432 marked this conversation as resolved.
Show resolved Hide resolved

private _conditions = missionNamespace getVariable [QGVAR(InteractionConditions), [[],[]]];
_conditions params ["_conditionNames", "_conditionFuncs"];
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_addSwayFactor.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
params ["_type", "_code", "_id"];

_type = toLower _type;
_type = toLowerANSI _type;

if !(_type in ["baseline", "multiplier"]) exitWith { ERROR_2("%1-%2 type unsupported",_type,_id); false };

Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_canGetInPosition.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

params ["_unit", "_vehicle", "_position", ["_checkDistance", false], ["_index", -1]];

_position = toLower _position;
_position = toLowerANSI _position;

// general
if (!alive _vehicle || {locked _vehicle > 1}) exitWith {false};
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_canInteractWith.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

params ["_unit", "_target", ["_exceptions", []]];

_exceptions = _exceptions apply {toLower _x};
_exceptions = _exceptions apply {toLowerANSI _x};
johnb432 marked this conversation as resolved.
Show resolved Hide resolved

private _owner = _target getVariable [QGVAR(owner), objNull];

Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_cbaSettings.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ TRACE_1("Reading settings from missionConfigFile",_countOptions);
for "_index" from 0 to (_countOptions - 1) do {
private _optionEntry = _missionSettingsConfig select _index;
private _settingName = configName _optionEntry;
if ((toLower _settingName) in GVAR(cbaSettings_forcedSettings)) then {
if ((toLowerANSI _settingName) in GVAR(cbaSettings_forcedSettings)) then {
WARNING_1("Setting [%1] - Already Forced - ignoring missionConfig",_varName);
} else {
if ((isNil _settingName) && {(getNumber (_settingsConfig >> _settingName >> "movedToSQF")) == 0}) then {
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_cbaSettings_convertHelper.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private _settings = configProperties [configFile >> "ACE_Settings", "(isClass _x

private _cbaIsGlobal = (!_isClientSettable) || _isForced;
private _warnIfChangedMidMission = _cbaIsGlobal && {(getNumber (_config >> "canBeChanged")) == 0};
if (_isForced) then {GVAR(cbaSettings_forcedSettings) pushBack (toLower _varName);};
if (_isForced) then {GVAR(cbaSettings_forcedSettings) pushBack (toLowerANSI _varName);};

// Basic handling of setting types CBA doesn't support:
if (_typeName == "ARRAY") exitWith {
Expand Down
3 changes: 1 addition & 2 deletions addons/common/functions/fnc_cbaSettings_loadFromConfig.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private _category = getText (_config >> "category");

private _cbaIsGlobal = (!_isClientSettable) || _isForced;
private _warnIfChangedMidMission = _cbaIsGlobal && {(getNumber (_config >> "canBeChanged")) == 0};
if (_isForced) then {GVAR(cbaSettings_forcedSettings) pushBack (toLower _varName);};
if (_isForced) then {GVAR(cbaSettings_forcedSettings) pushBack (toLowerANSI _varName);};

// Basic handling of setting types CBA doesn't support:
if (_typeName == "ARRAY") exitWith {
Expand Down Expand Up @@ -103,4 +103,3 @@ private _return = [_varName, _cbaSettingType, [_localizedName, _localizedDescrip
TRACE_1("returned",_return);
if ((isNil "_return") || {!_return}) then {ERROR_1("Setting [%1] - CBA Error",_varName);};
_return

2 changes: 1 addition & 1 deletion addons/common/functions/fnc_cbaSettings_settingChanged.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ TRACE_2("",_settingName,_newValue);

["ace_settingChanged", [_settingName, _newValue]] call CBA_fnc_localEvent;

if (!((toLower _settingName) in CBA_settings_needRestart)) exitWith {};
if (!((toLowerANSI _settingName) in CBA_settings_needRestart)) exitWith {};
johnb432 marked this conversation as resolved.
Show resolved Hide resolved
if (_canBeChanged) exitWith {WARNING_1("update cba setting [%1] to use correct Need Restart param",_settingName);};
if (!GVAR(settingsInitFinished)) exitWith {}; // Ignore changed event before CBA_settingsInitialized

Expand Down
4 changes: 2 additions & 2 deletions addons/common/functions/fnc_checkFiles.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if ([_cbaRequiredAr, _cbaVersionAr] call cba_versioning_fnc_version_compare) the
};

//private _addons = activatedAddons; // broken with High-Command module, see #2134
private _addons = (cba_common_addons select {(_x select [0,4]) == "ace_"}) apply {toLower _x};
private _addons = (cba_common_addons select {(_x select [0,4]) == "ace_"}) apply {toLowerANSI _x};
private _oldAddons = [];
private _oldSources = [];
private _oldCompats = [];
Expand Down Expand Up @@ -87,7 +87,7 @@ if (_oldCompats isNotEqualTo []) then {
///////////////
// check extensions
///////////////
private _platform = toLower (productVersion select 6);
private _platform = toLowerANSI (productVersion select 6);
if (!isServer && {_platform in ["linux", "osx"]}) then {
// Linux and OSX client ports do not support extensions at all
INFO("Operating system does not support extensions");
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_checkPBOs.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ params ["_mode", ["_checkAll", false], ["_whitelist", "", [""]]];
TRACE_3("params",_mode,_checkAll,_whitelist);

//lowercase and convert whiteList String into array of strings:
_whitelist = toLower _whitelist;
_whitelist = toLowerANSI _whitelist;
_whitelist = _whitelist splitString "[,""']";
TRACE_1("Array",_whitelist);

Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_getConfigName.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

params ["_className"];

(uiNamespace getVariable QGVAR(configNames)) getOrDefaultCall [toLower _className, {
(uiNamespace getVariable QGVAR(configNames)) getOrDefaultCall [toLowerANSI _className, {
private _config = configNull;

{
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_getDefaultAnim.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

params ["_unit"];

private _anim = toLower animationState _unit;
private _anim = toLowerANSI animationState _unit;

// stance is broken for some animations.
private _stance = stance _unit;
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_getGunner.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
params [["_vehicle", objNull, [objNull]], ["_weapon", "", [""]]];

// on foot
if (gunner _vehicle == _vehicle && {_weapon in weapons _vehicle || {toLower _weapon in ["throw", "put"]}}) exitWith {gunner _vehicle};
if (gunner _vehicle == _vehicle && {_weapon in weapons _vehicle || {toLowerANSI _weapon in ["throw", "put"]}}) exitWith {gunner _vehicle};

// inside vehicle
private _gunner = objNull;
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_getInPosition.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

params ["_unit", "_vehicle", "_position", ["_index", -1]];

_position = toLower _position;
_position = toLowerANSI _position;

// general
if (!alive _vehicle || {locked _vehicle > 1}) exitWith {false};
Expand Down
4 changes: 2 additions & 2 deletions addons/common/functions/fnc_getItemType.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ switch (true) do {
case (_type == TYPE_UNIFORM): {["item", "uniform"]};

case (_type == TYPE_BINOCULAR_AND_NVG): {
switch (toLower _simulation) do {
switch (toLowerANSI _simulation) do {
case ("weapon"): {["weapon", "binocular"]};
case ("binocular"): {["weapon", "binocular"]};
case ("nvgoggles"): {["item", "nvgoggles"]};
Expand All @@ -78,7 +78,7 @@ switch (true) do {

case (_type == TYPE_WEAPON_VEHICLE): {["weapon", "vehicle"]};
case (_type == TYPE_ITEM): {
switch (toLower _simulation) do {
switch (toLowerANSI _simulation) do {
case ("itemmap"): {["item", "map"]};
case ("itemgps"): {["item", "gps"]};
case ("itemradio"): {["item", "radio"]};
Expand Down
2 changes: 1 addition & 1 deletion addons/common/functions/fnc_getMapData.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

params ["_map"];
_map = toLower _map;
_map = toLowerANSI _map;

// [latitude, altitude]

Expand Down
4 changes: 2 additions & 2 deletions addons/common/functions/fnc_getMapGridData.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ private _stepY = 1e10;

private _letterGrid = false;

if (toLower _formatX find "a" != -1) then {_letterGrid = true};
if (toLower _formatY find "a" != -1) then {_letterGrid = true};
if (toLowerANSI _formatX find "a" != -1) then {_letterGrid = true};
if (toLowerANSI _formatY find "a" != -1) then {_letterGrid = true};

if (_letterGrid) exitWith {
WARNING_3("Map Grid Warning (%1) - Map uses letter grids [%2, %3]",worldName,_formatX,_formatY);
Expand Down
Loading
Loading