Wrapped _groupsToDrawMarkers filtering with a condition check

This commit is contained in:
looterz 2016-02-25 09:00:47 -06:00
parent b354fed39a
commit e6314eb114

View File

@ -41,10 +41,13 @@ if (GVAR(BFT_Enabled) and {(!isNil "ACE_player") and {alive ACE_player}}) then {
GVAR(BFT_markers) pushBack _marker; GVAR(BFT_markers) pushBack _marker;
} forEach _playersToDrawMarkers; } forEach _playersToDrawMarkers;
_groupsToDrawMarkers = _groupsToDrawMarkers select { if (not GVAR(BFG_HideAiGroups)) then
{ {
!(_x call EFUNC(common,isPlayer)); _groupsToDrawMarkers = _groupsToDrawMarkers select {
} count units _x > 0; {
!(_x call EFUNC(common,isPlayer));
} count units _x > 0;
};
}; };
}; };