Few quick optimizations of == to isEqualTo

This commit is contained in:
lambdatiger 2024-01-16 15:40:51 -06:00
parent 8dd76d1ba6
commit 6dacd38101
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ private _processedCfgAmmos = [];
private _printCount = 0;
{ // Begin forEach to check each ammo type
private _ammo = _x;
if (_ammo != "" && {!(_ammo in _processedCfgAmmos)}) then {
if (_ammo isNotEqualTo "" && {!(_ammo in _processedCfgAmmos)}) then {
_processedCfgAmmos pushBack _ammo;
private _ammoConfig = (configFile >> "CfgAmmo" >> _ammo);

View File

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