prevent multiple detonators of same type to be displayed #835

As per @CorruptedHeart suggestion.

> Just needs a
> if (getNumber (_config >> "ACE_Detonator") == 1 && {!(_x in _result)}) then {
This commit is contained in:
Glowbal 2015-04-29 10:44:10 +02:00
parent 95536f0a94
commit 7ca35bf823

View File

@ -21,7 +21,7 @@ _result = [];
{
_config = ConfigFile >> "CfgWeapons" >> _x;
if (getNumber (_config >> "ACE_Detonator") == 1) then {
if (getNumber (_config >> "ACE_Detonator") == 1 && {!(_x in _result)}) then {
_result pushBack _x;
};
} forEach _items;