Convereted toLower to toLowerANSI

This commit is contained in:
lambdatiger 2024-01-15 13:55:15 -06:00
parent 4bd866b97d
commit 3f45f7735b
4 changed files with 7 additions and 7 deletions

View File

@ -39,22 +39,22 @@ if (_onlyShotAmmoTypes) then {
];
if (_ammo isEqualTo "" || {_ammo in _allAmmoConfigs}) exitWith {};
_allAmmoConfigs pushBack _ammo;
private _subMunit = toLower getText (configFile >> "cfgAmmo" >> _ammo >> "submunitionAmmo");
private _subMunit = toLowerANSI getText (configFile >> "cfgAmmo" >> _ammo >> "submunitionAmmo");
if (_subMunit isNotEqualTo "") then {
_subMunit = getArray (configFile >> "cfgAmmo" >> _ammo >> "submunitionAmmo");
for "_i" from 0 to count _subMunit - 1 do {
if (_i mod 2 == 0) then {
[toLower (_subMunit#_i)] call _configSearchFunc;
[toLowerANSI (_subMunit#_i)] call _configSearchFunc;
};
};
} else {
[toLower _subMunit] call _configSearchFunc;
[toLowerANSI _subMunit] call _configSearchFunc;
};
};
private _allMagazineConfigs = configProperties [configFile >> "cfgMagazines", "isClass _x", true];
{
[toLower getText (_x >> "ammo")] call _configSearchFunc;
[toLowerANSI getText (_x >> "ammo")] call _configSearchFunc;
} forEach _allMagazineConfigs;
} else {
_allAmmoConfigs = configProperties [configFile >> "cfgAmmo", "isClass _x && !('ace_frag' in configName _x)", true] apply {configName _x};

View File

@ -30,7 +30,7 @@ private _nPrinted = 0;
diag_log text "//****************** fragCalcDump Beg ******************//";
{ // Begin _allAmmoConfigs forEach
private _ammo = toLower configName _x;
private _ammo = toLowerANSI configName _x;
if (_ammo == "" || {_ammo in _processedCfgAmmos} ) then { continue };

View File

@ -28,7 +28,7 @@ if (count _posASL < 3) then {
};
if (_color select [0,1] != "(") then {
switch (toLower _color) do {
switch (toLowerANSI _color) do {
case "blue": { _color = "(0,0,0.8,0.5)"; };
case "black": { _color = "(1,1,1,0.5)"; };
case "white": { _color = "(0,0,0,0.5)"; };

View File

@ -31,7 +31,7 @@ if (isClass (configFile >> "CfgSurfaces" >> _surfType)) then {
_material = getText (configFile >> "CfgSurfaces" >> _surfType >> "soundhit");
};
} else { // Messy way when a surface isn't added to cfgSurfaces
private _surfFileText = tolower preprocessFile _surfType;
private _surfFileText = toLowerANSI preprocessFile _surfType;
_surfFileText = _surfFileText regexReplace ["[^a-z0-9]", ""];
private _idx = 12 + (_surfFileText find "soundenviron");
if (_surfFileText select [_idx, 5] isEqualTo "empty") then {