mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Wrapped _groupsToDrawMarkers filtering with a condition check
This commit is contained in:
parent
b354fed39a
commit
e6314eb114
@ -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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user