From 3f1393995c8787394361f18b1d183526772b7dd2 Mon Sep 17 00:00:00 2001 From: McDiod Date: Wed, 5 Dec 2018 21:04:20 +0100 Subject: [PATCH] fix playzone vote running too early --- functions/missionSetup/fn_init.sqf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/missionSetup/fn_init.sqf b/functions/missionSetup/fn_init.sqf index fac1d8c..108a538 100644 --- a/functions/missionSetup/fn_init.sqf +++ b/functions/missionSetup/fn_init.sqf @@ -38,7 +38,9 @@ _timeOfDay = [] call FUNC(setTime); [_timeOfDay] call FUNC(setWeather); - [] call EFUNC(votePlayzone,initServer); + [{missionNamespace getVariable ["CBA_missionTime",0] > 0},{ + [] call EFUNC(votePlayzone,initServer); + },[]] call CBA_fnc_waitUntilAndExecute; // wait until voting complete [{missionNamespace getVariable [QEGVAR(votePlayzone,votingComplete),false]},{