mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
remove commented debug messages
This commit is contained in:
parent
5e68486233
commit
dd788342fe
@ -65,26 +65,17 @@ if (isMultiplayer) then {
|
|||||||
// send servers version of ACE to all clients
|
// send servers version of ACE to all clients
|
||||||
GVAR(ServerVersion) = _version;
|
GVAR(ServerVersion) = _version;
|
||||||
GVAR(ServerAddons) = _addons;
|
GVAR(ServerAddons) = _addons;
|
||||||
//diag_log text format ["[ACE] DEBUG: ServerVersion - %1", GVAR(ServerVersion)];
|
|
||||||
//diag_log text format ["[ACE] DEBUG: ServerAddons - %1", GVAR(ServerAddons)];
|
|
||||||
publicVariable QGVAR(ServerVersion);
|
publicVariable QGVAR(ServerVersion);
|
||||||
publicVariable QGVAR(ServerAddons);
|
publicVariable QGVAR(ServerAddons);
|
||||||
} else {
|
} else {
|
||||||
// clients have to wait for the variables
|
// clients have to wait for the variables
|
||||||
[{
|
[{
|
||||||
if (isNil QGVAR(ServerVersion) || isNil QGVAR(ServerAddons)) exitWith {
|
if (isNil QGVAR(ServerVersion) || isNil QGVAR(ServerAddons)) exitWith {};
|
||||||
//diag_log text "[ACE] DEBUG: Waiting for file info from server.";
|
|
||||||
};
|
|
||||||
|
|
||||||
private ["_version","_addons"];
|
private ["_version","_addons"];
|
||||||
_version = (_this select 0) select 0;
|
_version = (_this select 0) select 0;
|
||||||
_addons = (_this select 0) select 1;
|
_addons = (_this select 0) select 1;
|
||||||
|
|
||||||
//diag_log text format ["[ACE] DEBUG: ServerVersion - %1", GVAR(ServerVersion)];
|
|
||||||
//diag_log text format ["[ACE] DEBUG: ServerAddons - %1", GVAR(ServerAddons)];
|
|
||||||
//diag_log text format ["[ACE] DEBUG: ClientVersion - %1", _version];
|
|
||||||
//diag_log text format ["[ACE] DEBUG: ClientAddons - %1", _addons];
|
|
||||||
|
|
||||||
if (_version != GVAR(ServerVersion)) then {
|
if (_version != GVAR(ServerVersion)) then {
|
||||||
private "_errorMsg";
|
private "_errorMsg";
|
||||||
_errorMsg = format ["Client/Server Version Mismatch. Server: %1, Client: %2.", GVAR(ServerVersion), _version];
|
_errorMsg = format ["Client/Server Version Mismatch. Server: %1, Client: %2.", GVAR(ServerVersion), _version];
|
||||||
|
Loading…
Reference in New Issue
Block a user