Match case for magazines in fillRightPanel (ACE Arsenal) (#6044)

* Match case for magazines in fillRightPanel

Apparently you can have different case between the entry in the weapon magazines array and its actual configname...

* Add possible fix for the mission end bug

* Add ded's proposed fix, remove closeOnMissionEnd

CloseOnMissionEnd is bugged in 3DEN and force close the display after it's opened
This commit is contained in:
Josuan Albin 2018-01-15 18:21:38 +01:00 committed by jonpas
parent fc037d1bc3
commit b7606800a1

View File

@ -86,7 +86,7 @@ private _compatibleMagazines = [[[], []], [[], []], [[], []]];
private _magArray = [_magazineGroups, _x] call CBA_fnc_hashGet;
{((_compatibleMagazines select _index) select _subIndex) pushBackUnique _x} forEach _magArray;
} else {
((_compatibleMagazines select _index) select _subIndex) pushBackUnique _x
((_compatibleMagazines select _index) select _subIndex) pushBackUnique (configName (configFile >> "CfgMagazines" >> _x))
}
} foreach ([getArray (_weaponConfig >> _x >> "magazines"), getArray (_weaponConfig >> "magazines")] select (_x == "this"));
} foreach getArray (_weaponConfig >> "muzzles");