mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Merge pull request #683 from Ignatz-HeMan/patch-10
Removed workaround for PlayerDisconnected
This commit is contained in:
commit
5f95340c7f
@ -80,17 +80,7 @@ addMissionEventHandler ["PlayerConnected", {
|
|||||||
['Connected', [_uid, _name]] call EPOCH_fnc_server_hiveLog;
|
['Connected', [_uid, _name]] call EPOCH_fnc_server_hiveLog;
|
||||||
}];
|
}];
|
||||||
|
|
||||||
onPlayerDisconnected {
|
addMissionEventHandler ["HandleDisconnect", {_this call EPOCH_server_onPlayerDisconnect}];
|
||||||
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}];
|
|
||||||
|
|
||||||
diag_log "Epoch: Setup Side Settings";
|
diag_log "Epoch: Setup Side Settings";
|
||||||
//set side status
|
//set side status
|
||||||
|
Loading…
Reference in New Issue
Block a user