Skip to content

Commit 18e08e8

Browse files
authored
change toLower to toLowerANSI (#410)
* change toLower to toLowerANSI * also change toUpper toUpperANSI * Update XEH_postInit.sqf
1 parent e6a509f commit 18e08e8

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

addons/main/functions/VehicleAction/fnc_doSelectWarhead.sqf

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if (_switchMuzzle) then {
4747
private _muzzles = getArray (configFile >> "CfgWeapons" >> _turret >> "muzzles");
4848

4949
// first pass, try to find a muzzle that has the same name
50-
private _index = _muzzles findIf {(toUpper _x) in _warheadTypes};
50+
private _index = _muzzles findIf {(toUpperANSI _x) in _warheadTypes};
5151
if (_index > -1 && { // found muzzle with same name
5252
// one of the mags that can be loaded into that muzzle is in available mags
5353
((getArray (configFile >> "CfgWeapons" >> _turret >> (_muzzles select _index) >> "magazines")) arrayIntersect _availableMags) isNotEqualTo []
@@ -74,7 +74,7 @@ if (_muzzle isEqualTo "") then {
7474
{
7575
private _ammo = getText (configFile >> "CfgMagazines" >> _x >> "ammo");
7676
if (_ammo isEqualTo "") then {continue};
77-
if ((toUpper (getText (configFile >> "CfgAmmo" >> _ammo >> "warheadName"))) in _warheadTypes) then {
77+
if ((toUpperANSI (getText (configFile >> "CfgAmmo" >> _ammo >> "warheadName"))) in _warheadTypes) then {
7878
_foundMag = _x;
7979
break;
8080
};

addons/main/functions/fnc_doAnimation.sqf

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ params [
3030

3131
// switchMove "" no longer works in dev 1.37
3232
if (_animation == "") then {
33-
_animation = toLower (animationState _unit);
33+
_animation = toLowerANSI (animationState _unit);
3434

3535
// stances are broken for some Animations
3636
private _stance = switch (_animation select [4, 4]) do {

addons/main/functions/fnc_doCallout.sqf

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ if (_time >= time) exitWith {
3838
};
3939

4040
private _speaker = speaker _unit;
41-
if (toUpper(_speaker) in ["", "ACE_NOVOICE"]) exitWith {}; // Early Exit if Unit is "Mute"
41+
if (toUpperANSI(_speaker) in ["", "ACE_NOVOICE"]) exitWith {}; // Early Exit if Unit is "Mute"
4242

43-
switch (toLower(_callout)) do {
43+
switch (toLowerANSI(_callout)) do {
4444
case ("contact"): {
4545
_callout = selectRandom ["ContactE_1", "ContactE_2", "ContactE_3", "Danger"];
4646
};

addons/main/functions/fnc_getShareInformationParams.sqf

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ private _units = units _unit select {
4040
private _index = _units findIf {
4141
_x getVariable [QEGVAR(danger,dangerRadio), false]
4242
//|| {(!isNull objectParent _x && {_x distance2D _unit < 70})}
43-
|| {"b_radiobag_01_" in (toLower backpack _x)}
43+
|| {"b_radiobag_01_" in (toLowerANSI backpack _x)}
4444
|| {(getNumber (configFile >> "CfgVehicles" >> (backpack _x) >> "tf_hasLRradio")) isEqualTo 1}
4545
};
4646
_radio = _index isNotEqualTo -1;

addons/main/functions/fnc_showDialog.sqf

+1-1
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ private _fnc_AddSideSelector = {
344344

345345
private _controls = [];
346346
{
347-
private _type = toUpper (_x select 1);
347+
private _type = toUpperANSI (_x select 1);
348348
switch (_type) do {
349349
case ("BOOLEAN");
350350
case ("BOOL"): {

0 commit comments

Comments
 (0)