Fixed: returns true even if below minimum

This commit is contained in:
IT07
2016-05-07 16:21:38 +02:00
parent ca9ef58af6
commit b02665a3c5

View File

@ -16,20 +16,17 @@ _ok = false;
if (_this isEqualType []) then
{
private ["_minimum"];
_minimum = param [0, -1, [0]];
if (_minimum > -1) then
_minimum = param [0, 1, [0]];
_players = 0;
{
_players = 0;
{
if (isPlayer _x) then
if (isPlayer _x) then
{
_players = _players + 1;
};
} forEach allPlayers;
if (_players > 0) then
{
_ok = true
};
} forEach allPlayers;
if (_players >= _minimum) then
{
_ok = true
};
};