move this workaround to onDisconnect.

should handle removing any doppelgangers if the player did not log in
correctly.
This commit is contained in:
vbawol 2017-05-21 16:24:41 -05:00
parent 759daa7ee5
commit db030763bd
2 changed files with 6 additions and 7 deletions

View File

@ -139,13 +139,6 @@ if (!isNull _player) then {
_group = grpNull; _group = grpNull;
// Delete any left over units with same PUID
{
if ((_x getVariable["PUID", "0"]) == _playerUID) then {
deleteVehicle _x;
};
} forEach allUnits;
// find existing group // find existing group
if (_playerGroup != "") then { if (_playerGroup != "") then {
{ {

View File

@ -28,6 +28,12 @@ if (!isNull _player) then {
deleteVehicle _player; deleteVehicle _player;
}; };
}; };
// Delete any left over units with same PUID
{
if ((_x getVariable["PUID", "0"]) == _uid) then {
deleteVehicle _x;
};
} forEach allUnits;
_uid call EPOCH_server_disconnect; _uid call EPOCH_server_disconnect;
['Disconnected', [_uid, _name]] call EPOCH_fnc_server_hiveLog; ['Disconnected', [_uid, _name]] call EPOCH_fnc_server_hiveLog;
_return _return