mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Simplify addon checking code
This commit is contained in:
parent
e4f89a96b7
commit
873936dc31
@ -85,9 +85,9 @@ if (isMultiplayer) then {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
{
|
_addons = _addons - GVAR(ServerAddons);
|
||||||
if !(_x in GVAR(ServerAddons)) then {
|
if !(_addons isEqualTo []) then {
|
||||||
_errorMsg = format ["Client/Server Addon Mismatch. Client has extra addon: %1.",_x];
|
_errorMsg = format ["Client/Server Addon Mismatch. Client has extra addons: %1.",_addons];
|
||||||
|
|
||||||
diag_log text format ["[ACE] ERROR: %1", _errorMsg];
|
diag_log text format ["[ACE] ERROR: %1", _errorMsg];
|
||||||
|
|
||||||
@ -95,7 +95,6 @@ if (isMultiplayer) then {
|
|||||||
["[ACE] ERROR", _errorMsg, {findDisplay 46 closeDisplay 0}] call FUNC(errorMessage);
|
["[ACE] ERROR", _errorMsg, {findDisplay 46 closeDisplay 0}] call FUNC(errorMessage);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
} forEach _addons;
|
|
||||||
|
|
||||||
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
[_this select 1] call CBA_fnc_removePerFrameHandler;
|
||||||
}, 1, [_version,_addons]] call CBA_fnc_addPerFrameHandler;
|
}, 1, [_version,_addons]] call CBA_fnc_addPerFrameHandler;
|
||||||
|
Loading…
Reference in New Issue
Block a user