diff --git a/@ExileServer/addons/a3_dms/config.cpp b/@ExileServer/addons/a3_dms/config.cpp index b27650e..ec6e6ef 100644 --- a/@ExileServer/addons/a3_dms/config.cpp +++ b/@ExileServer/addons/a3_dms/config.cpp @@ -4,7 +4,7 @@ class CfgPatches { units[] = {}; weapons[] = {}; - a3_DMS_version = "February 25, 2017"; + a3_DMS_version = "March 8, 2017"; requiredVersion = 1.66; requiredAddons[] = {"exile_client","exile_server_config"}; }; diff --git a/@ExileServer/addons/a3_dms/scripts/fn_SelectMission.sqf b/@ExileServer/addons/a3_dms/scripts/fn_SelectMission.sqf index 4d0c337..63fbcbd 100644 --- a/@ExileServer/addons/a3_dms/scripts/fn_SelectMission.sqf +++ b/@ExileServer/addons/a3_dms/scripts/fn_SelectMission.sqf @@ -80,21 +80,25 @@ if (diag_fps >= DMS_MinServerFPS && {_playerCount >= DMS_MinPlayerCount}) then "_timeBetween" ]; - private _timesPerRestart = missionNamespace getVariable format["DMS_SpecialMissionSpawnCount_%1",_mission]; + private _timesSpawned = missionNamespace getVariable format["DMS_SpecialMissionSpawnCount_%1",_mission]; if ( (_playerCount > _minPlayers) && {_playerCount < _maxPlayers} && - {_maxTimesPerRestart < _timesPerRestart} && + {_maxTimesPerRestart > _timesSpawned} && {(_time - (missionNamespace getVariable format["DMS_SpecialMissionLastSpawn_%1",_mission])) > _timeBetween} ) then { - private _missionCode = missionNamespace getVariable format + private _missionCode = [ - "DMS_SpecialMission_%1", - "no" - ]; + missionNamespace getVariable format + [ + "DMS_SpecialMission_%1", + _mission + ] + ] param [0, "no",[{}]]; + if (_missionCode isEqualTo "no") then { @@ -102,7 +106,7 @@ if (diag_fps >= DMS_MinServerFPS && {_playerCount >= DMS_MinPlayerCount}) then } else { - missionNamespace setVariable [format["DMS_SpecialMissionSpawnCount_%1",_mission], _timesPerRestart+1]; + missionNamespace setVariable [format["DMS_SpecialMissionSpawnCount_%1",_mission], _timesSpawned+1]; call _missionCode;