Skip to content

Commit 7f6c653

Browse files
committed
change toLower to toLowerANSI where applicable
1 parent 667ea5e commit 7f6c653

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

addons/Streamator/Spectator/fn_firedEH.sqf

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if (GVAR(OverlayBulletTracer)) then {
2222
if (isNull _projectile) then {
2323
_projectile = (getPos _unit) nearestObject _ammo;
2424
};
25-
if (toLower _weapon in ["put", "throw"]) then { // Handle Thrown Grenate
25+
if (toLowerANSI _weapon in ["put", "throw"]) then { // Handle Thrown Grenate
2626
GVAR(ThrownTracked) pushBack [_projectile, time + 10];
2727
};
2828
private _color = +(GVAR(SideColorsArray) getOrDefault [side (group _unit), [0.4, 0, 0.5, 1]]);

addons/Streamator/Spectator/fn_getUnitType.sqf

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,12 @@ if (_isEngineer) exitWith {
7272
//"\a3\ui_f\data\IGUI\Cfg\simpleTasks\types\repair_ca.paa";
7373
["\A3\ui_f\data\gui\cfg\respawnroles\support_ca.paa", 1];
7474
};
75-
if ((toLower (getText(configFile >> "CfgWeapons" >> (secondaryWeapon _unit) >> "UIPicture")) == "\a3\weapons_f\data\ui\icon_at_ca.paa")) exitWith {
75+
if ((toLowerANSI (getText(configFile >> "CfgWeapons" >> (secondaryWeapon _unit) >> "UIPicture")) == "\a3\weapons_f\data\ui\icon_at_ca.paa")) exitWith {
7676
//"\a3\ui_f\data\igui\cfg\weaponicons\at_ca.paa";
7777
["\A3\ui_f\data\gui\rsc\rscdisplayarsenal\secondaryweapon_ca.paa", 1.3];
7878
};
7979

80-
private _primaryWeapon = toLower primaryWeapon _unit;
80+
private _primaryWeapon = toLowerANSI primaryWeapon _unit;
8181
if ("srifle" in _primaryWeapon) exitWith {
8282
//"\a3\ui_f\data\igui\cfg\weaponicons\srifle_ca.paa";
8383
["\A3\ui_f\data\gui\cfg\respawnroles\recon_ca.paa", 1];
@@ -88,7 +88,7 @@ if ("gl" in _primaryWeapon) exitWith {
8888
["\A3\ui_f_curator\data\rsccommon\rscattributeinventory\filter_6_ca.paa", 1];
8989
};
9090

91-
if ((toLower (getText (configFile >> "CfgWeapons" >> (primaryWeapon _unit) >> "UIPicture")) == "\a3\weapons_f\data\ui\icon_mg_ca.paa")) exitWith {
91+
if ((toLowerANSI (getText (configFile >> "CfgWeapons" >> (primaryWeapon _unit) >> "UIPicture")) == "\a3\weapons_f\data\ui\icon_mg_ca.paa")) exitWith {
9292
//"\a3\ui_f\data\igui\cfg\weaponicons\mg_ca.paa";
9393
["\A3\ui_f\data\gui\cfg\respawnroles\assault_ca.paa", 1];
9494
};

addons/Streamator/UnitTracker/fn_updateIcons.sqf

+5-5
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ private _vehicles = (vehicles select { _x call FUNC(isValidVehicle) });
3131
if (_units isNotEqualTo []) then {
3232
{
3333
if (isNull objectParent _x) then { // Infantry
34-
private _iconId = toLower format [QGVAR(IconId_Player_%1_%2), _x, (group _x)];
34+
private _iconId = toLowerANSI format [QGVAR(IconId_Player_%1_%2), _x, (group _x)];
3535
if !(_iconId in GVAR(processedIcons)) then {
3636
GVAR(processedIcons) pushBack _iconId;
3737
// DUMP("UNIT ICON ADDED: " + _iconId);
3838
[_x, _iconId] call FUNC(addUnitToTracker);
3939
};
4040

4141
if (alive _x && { leader _x == _x }) then {
42-
_iconId = toLower format [QGVAR(IconId_Group_%1_%2), group _x, _x];
42+
_iconId = toLowerANSI format [QGVAR(IconId_Group_%1_%2), group _x, _x];
4343
if !(_iconId in GVAR(processedIcons)) then {
4444
GVAR(processedIcons) pushBack _iconId;
4545
// DUMP("GROUP ICON ADDED: " + _iconId);
@@ -52,7 +52,7 @@ if (_units isNotEqualTo []) then {
5252
private _inGroup = {
5353
if (leader _x == _x) then {
5454
_nbrGroups = _nbrGroups + 1;
55-
private _iconId = toLower format [QGVAR(IconId_Group_%1_%2_%3), group _x, _vehicle, _nbrGroups];
55+
private _iconId = toLowerANSI format [QGVAR(IconId_Group_%1_%2_%3), group _x, _vehicle, _nbrGroups];
5656
if !(_iconId in GVAR(processedIcons)) then {
5757
GVAR(processedIcons) pushBack _iconId;
5858
// DUMP("GROUP ICON ADDED: " + _iconId);
@@ -63,7 +63,7 @@ if (_units isNotEqualTo []) then {
6363
} count (crew _vehicle);
6464
_inGroup = _inGroup > 0;
6565
if (!isNull _vehicle) then {
66-
private _iconId = toLower format [QGVAR(IconId_Vehicle_%1), _vehicle];
66+
private _iconId = toLowerANSI format [QGVAR(IconId_Vehicle_%1), _vehicle];
6767
if !(_iconId in GVAR(processedIcons)) then {
6868
GVAR(processedIcons) pushBack _iconId;
6969
// DUMP("VEHICLE ADDED: " + _iconId);
@@ -76,7 +76,7 @@ if (_units isNotEqualTo []) then {
7676

7777
if (_vehicles isNotEqualTo []) then {
7878
{
79-
private _iconId = toLower format [QGVAR(IconId_Vehicle_%1), _x];
79+
private _iconId = toLowerANSI format [QGVAR(IconId_Vehicle_%1), _x];
8080
if (
8181
!(_iconId in GVAR(processedIcons))
8282
&& (locked _x) <= 1

0 commit comments

Comments
 (0)