Skip to content

Commit

Permalink
fix playzone vote running too early
Browse files Browse the repository at this point in the history
  • Loading branch information
McDiod committed Dec 5, 2018
1 parent d258696 commit 3f13939
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion functions/missionSetup/fn_init.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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]},{
Expand Down

0 comments on commit 3f13939

Please sign in to comment.