mirror of
https://github.com/IT07/a3_vemf_reloaded.git
synced 2025-07-25 02:50:38 +00:00
Fixed: returns true even if below minimum
This commit is contained in:
@ -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
|
||||
};
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user