mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Few quick optimizations of == to isEqualTo
This commit is contained in:
parent
8dd76d1ba6
commit
6dacd38101
@ -65,7 +65,7 @@ private _processedCfgAmmos = [];
|
|||||||
private _printCount = 0;
|
private _printCount = 0;
|
||||||
{ // Begin forEach to check each ammo type
|
{ // Begin forEach to check each ammo type
|
||||||
private _ammo = _x;
|
private _ammo = _x;
|
||||||
if (_ammo != "" && {!(_ammo in _processedCfgAmmos)}) then {
|
if (_ammo isNotEqualTo "" && {!(_ammo in _processedCfgAmmos)}) then {
|
||||||
_processedCfgAmmos pushBack _ammo;
|
_processedCfgAmmos pushBack _ammo;
|
||||||
|
|
||||||
private _ammoConfig = (configFile >> "CfgAmmo" >> _ammo);
|
private _ammoConfig = (configFile >> "CfgAmmo" >> _ammo);
|
||||||
|
@ -31,7 +31,7 @@ diag_log text "//****************** fragCalcDump Beg ******************//";
|
|||||||
{ // Begin _allAmmoConfigs forEach
|
{ // Begin _allAmmoConfigs forEach
|
||||||
private _ammo = toLowerANSI configName _x;
|
private _ammo = toLowerANSI configName _x;
|
||||||
|
|
||||||
if (_ammo == "" || {_ammo in _processedCfgAmmos} ) then {
|
if (_ammo isEqualTo "" || {_ammo in _processedCfgAmmos} ) then {
|
||||||
continue
|
continue
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user