Skip to content

Commit

Permalink
Arsenal - Filter items with scopeArsenal = 0 (#5988)
Browse files Browse the repository at this point in the history
* Arsenal - Filter items with scopeArsenal = 0

* change order
  • Loading branch information
PabstMirror authored Dec 29, 2017
1 parent 6d2da10 commit 65fe101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/arsenal/functions/fnc_scanConfig.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private _magazineGroups = [[],[]] call CBA_fnc_hashCreate;
(_cargo select 17) pushBackUnique _className;
};
};
} foreach configProperties [_configCfgWeapons, "isClass _x && {getNumber (_x >> 'scope') == 2} && {getNumber (_x >> 'ace_arsenal_hide') != 1}", true];
} foreach configProperties [_configCfgWeapons, "isClass _x && {(if (isNumber (_x >> 'scopeArsenal')) then {getNumber (_x >> 'scopeArsenal')} else {getNumber (_x >> 'scope')}) == 2} && {getNumber (_x >> 'ace_arsenal_hide') != 1}", true];

{
private _className = configName _x;
Expand Down

0 comments on commit 65fe101

Please sign in to comment.