Fix ace_settings

This commit is contained in:
PabstMirror 2015-05-29 21:03:47 -05:00
parent 552b2f390f
commit 5efde25585

View File

@ -255,11 +255,18 @@ GVAR(commonPostInited) = true;
// If post inits are not ready then wait
if !(SLX_XEH_MACHINE select 8) exitWith {};
// If settings are not initialized then wait
if !(GVAR(SettingsInitialized)) exitWith {};
if (isNil QGVAR(settings)) exitWith {
diag_log text format["[ACE] Waiting on settings from server"];
};
[(_this select 1)] call cba_fnc_removePerFrameHandler;
diag_log text format["[ACE] Settings initialized"];
//Load from profile and localize settings:
["ServerSettingsReceived", []] call FUNC(localEvent);
//Event that settings are safe to use:
["SettingsInitialized", []] call FUNC(localEvent);
}, 0, []] call cba_fnc_addPerFrameHandler;