capitization from cfg to Cfg in config lookups

This commit is contained in:
lambdatiger 2024-01-17 20:48:27 -06:00
parent da1d184009
commit 183d9f0ac6
3 changed files with 6 additions and 8 deletions

View File

@ -6,7 +6,7 @@
* shouldFrag to cull non-fragmenting rounds.
*
* Arguments:
* 0: Display rounds that will never frag (power < 5) <BOOL> (default: false)
* 0: Display rounds that will never frag (power < 5). <BOOL> (default: false)
*
* Return Value:
* None
@ -17,11 +17,9 @@
* Public: No
*/
params [
["_logAll", false, [false]]
];
params [["_logAll", false, [false]]];
private _allAmmoConfigs = configProperties [configFile >> "cfgAmmo", "isClass _x && !('ace_frag' in configName _x)", true];
private _allAmmoConfigs = configProperties [configFile >> "CfgAmmo", "isClass _x && !('ace_frag' in configName _x)", true];
private _processedCfgAmmos = [];
private _nPrinted = 0;

View File

@ -8,7 +8,7 @@
* on the surface hit.
*
* Arguments:
* 0: surfacetype <STRING> - either a cfgSurfaces path .bisurf filepath
* 0: surfacetype <STRING> - either a CfgSurfaces path .bisurf filepath
*
* Return Value:
* _material <STRING> - Material categories as expanded on in line 44 below
@ -34,7 +34,7 @@ if (isClass _surfaceConfig) then {
if (_material isEqualTo "" || {_material isEqualTo "empty"}) then {
_material = getText (_surfaceConfig >> "soundhit");
};
} else { // Messy way when a surface isn't added to cfgSurfaces
} else { // Messy way when a surface isn't added to CfgSurfaces
private _surfFileText = toLowerANSI preprocessFile _surfType;
_surfFileText = _surfFileText regexReplace ["[^a-z0-9]", ""];
private _idx = ACE_FRAG_SOUNDENVIRON_STR_LEN + (_surfFileText find "soundenviron");

View File

@ -34,7 +34,7 @@ private _errors = 0;
continue;
};
if (!isClass (configFile >> "cfgAmmo" >> _ammo)) then {
if (!isClass (configFile >> "CfgAmmo" >> _ammo)) then {
INFO_1("Ammo class: %1 does not exist", str _ammo);
INC(_errors);
continue;