Read server modules before "SettingsInitialized" on clients

This commit is contained in:
PabstMirror 2015-06-09 01:27:59 -05:00
parent b61bd1fb75
commit 8abd488a43
2 changed files with 6 additions and 1 deletions

View File

@ -266,7 +266,7 @@ GVAR(commonPostInited) = true;
if !(SLX_XEH_MACHINE select 8) exitWith {};
// If settings are not initialized then wait
if (isNil QGVAR(settings)) exitWith {
if (isNil QGVAR(settings) || {(!isServer) && (isNil QEGVAR(modules,serverModulesRead))}) exitWith {
if (!_waitingMsgSent) then {
_args set [0, true];
diag_log text format["[ACE] Waiting on settings from server"];

View File

@ -43,4 +43,9 @@
};
};
}foreach GVAR(moduleInitCollection);
if (isServer) then {
GVAR(serverModulesRead) = true;
publicVariable QGVAR(serverModulesRead);
};
}] call EFUNC(common,addEventhandler);