From 8fda9538cb5b2a1bfa909800e9e106c0083479a3 Mon Sep 17 00:00:00 2001 From: Moritz Schmidt Date: Tue, 28 Jul 2020 15:58:58 +0200 Subject: [PATCH] prevent transit spawn collisions --- addons/legacy/functions/fnc_globalSpawnPass.sqf | 2 +- addons/main/script_version.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/legacy/functions/fnc_globalSpawnPass.sqf b/addons/legacy/functions/fnc_globalSpawnPass.sqf index 8e06dfbc..91e06a3a 100644 --- a/addons/legacy/functions/fnc_globalSpawnPass.sqf +++ b/addons/legacy/functions/fnc_globalSpawnPass.sqf @@ -15,7 +15,7 @@ if ((count (entities "HeadlessClient_F") > 0) && CBA_missionTime < 10) exitWith private _hcs = (entities "HeadlessClient_F") arrayIntersect allPlayers; if (count _hcs > 0) then { - [QGVAR(globalSpawn), [], _hcs] call CBA_fnc_targetEvent; + [QGVAR(globalSpawn), [], selectRandom _hcs] call CBA_fnc_targetEvent; } else { [QGVAR(globalSpawn), []] call CBA_fnc_serverEvent; }; diff --git a/addons/main/script_version.hpp b/addons/main/script_version.hpp index d61c07ce..176da1ab 100644 --- a/addons/main/script_version.hpp +++ b/addons/main/script_version.hpp @@ -1,4 +1,4 @@ #define MAJOR 5 #define MINOR 0 #define PATCH 0 -#define BUILD 2 +#define BUILD 3