Merge pull request #683 from Ignatz-HeMan/patch-10

Removed workaround for PlayerDisconnected
This commit is contained in:
vbawol 2016-12-12 12:40:24 -06:00 committed by GitHub
commit 5f95340c7f

View File

@ -80,17 +80,7 @@ addMissionEventHandler ["PlayerConnected", {
['Connected', [_uid, _name]] call EPOCH_fnc_server_hiveLog;
}];
onPlayerDisconnected {
params ["_id", "_uid", "_name"];
_unit = objNull;
{
if ((_x getVariable["PUID", "0"]) == _uid) exitWith {
_unit = _x;
};
} forEach allUnits;
[_unit,_id,_uid,_name] call EPOCH_server_onPlayerDisconnect
};
// addMissionEventHandler ["HandleDisconnect", {_this call EPOCH_server_onPlayerDisconnect}];
addMissionEventHandler ["HandleDisconnect", {_this call EPOCH_server_onPlayerDisconnect}];
diag_log "Epoch: Setup Side Settings";
//set side status