diff --git a/@ExileServer/addons/a3_dms/scripts/fn_SelectMission.sqf b/@ExileServer/addons/a3_dms/scripts/fn_SelectMission.sqf index 63fbcbd..ad43922 100644 --- a/@ExileServer/addons/a3_dms/scripts/fn_SelectMission.sqf +++ b/@ExileServer/addons/a3_dms/scripts/fn_SelectMission.sqf @@ -84,8 +84,8 @@ if (diag_fps >= DMS_MinServerFPS && {_playerCount >= DMS_MinPlayerCount}) then if ( - (_playerCount > _minPlayers) && - {_playerCount < _maxPlayers} && + (_playerCount >= _minPlayers) && + {_playerCount <= _maxPlayers} && {_maxTimesPerRestart > _timesSpawned} && {(_time - (missionNamespace getVariable format["DMS_SpecialMissionLastSpawn_%1",_mission])) > _timeBetween} ) then diff --git a/@ExileServer/addons/a3_dms/scripts/fn_TargetsKilled.sqf b/@ExileServer/addons/a3_dms/scripts/fn_TargetsKilled.sqf index ae904e9..76e1878 100644 --- a/@ExileServer/addons/a3_dms/scripts/fn_TargetsKilled.sqf +++ b/@ExileServer/addons/a3_dms/scripts/fn_TargetsKilled.sqf @@ -33,7 +33,10 @@ try } else { - _x setVariable ["DMS_LastAIDistanceCheck",time]; + if ((time - _lastDistanceCheckTime)>=DMS_AIDistanceCheckFrequency) then + { + _x setVariable ["DMS_LastAIDistanceCheck",time]; + }; throw _x; }; } forEach (_this call DMS_fnc_GetAllUnits); // DMS_fnc_GetAllUnits will return living AI unit objects only, so we only need to check for runaway units