mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Arsenal - Optimize non-scope 2 mags filtering (#7543)
This commit is contained in:
parent
d63c7685b4
commit
f6af95b4a1
@ -60,7 +60,7 @@ switch (GVAR(currentLeftPanel)) do {
|
||||
private _cfgMags = configFile >> "CfgMagazines";
|
||||
private _compatibleMags = ([_item, true] call CBA_fnc_compatibleMagazines) select { getNumber (_cfgMags >> _x >> "scope") == 2 };
|
||||
GVAR(center) addWeapon _item;
|
||||
if ((count _compatibleMags) > 0) then {
|
||||
if !(_compatibleMags isEqualTo []) then {
|
||||
GVAR(center) addWeaponItem [_item, [_compatibleMags select 0]];
|
||||
};
|
||||
|
||||
@ -102,7 +102,7 @@ switch (GVAR(currentLeftPanel)) do {
|
||||
private _cfgMags = configFile >> "CfgMagazines";
|
||||
private _compatibleMags = ([_item, true] call CBA_fnc_compatibleMagazines) select { getNumber (_cfgMags >> _x >> "scope") == 2 };
|
||||
GVAR(center) addWeapon _item;
|
||||
if ((count _compatibleMags) > 0) then {
|
||||
if !(_compatibleMags isEqualTo []) then {
|
||||
GVAR(center) addWeaponItem [_item, [_compatibleMags select 0]];
|
||||
};
|
||||
|
||||
@ -143,7 +143,7 @@ switch (GVAR(currentLeftPanel)) do {
|
||||
private _cfgMags = configFile >> "CfgMagazines";
|
||||
private _compatibleMags = ([_item, true] call CBA_fnc_compatibleMagazines) select { getNumber (_cfgMags >> _x >> "scope") == 2 };
|
||||
GVAR(center) addWeapon _item;
|
||||
if ((count _compatibleMags) > 0) then {
|
||||
if !(_compatibleMags isEqualTo []) then {
|
||||
GVAR(center) addWeaponItem [_item, [_compatibleMags select 0]];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user