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,12 +41,15 @@ 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;
if (not GVAR(BFG_HideAiGroups)) then
{
_groupsToDrawMarkers = _groupsToDrawMarkers select { _groupsToDrawMarkers = _groupsToDrawMarkers select {
{ {
!(_x call EFUNC(common,isPlayer)); !(_x call EFUNC(common,isPlayer));
} count units _x > 0; } count units _x > 0;
}; };
}; };
};
{ {
private _markerType = [_x] call EFUNC(common,getMarkerType); private _markerType = [_x] call EFUNC(common,getMarkerType);