Also update objects if player is dead in onPlayerDisconnect

I just noticed before 5f0c2fc this was also running if the player was
dead. Now it will run if the player is alive in playerSync otherwise it
will run here if they are dead.
This commit is contained in:
ebaydayz
2016-09-21 11:41:23 -04:00
parent a60556e8a3
commit f3ccb74eab

View File

@@ -74,6 +74,9 @@ if (_characterID != "?") exitwith {
//diag_log format["playerID %1 added to ghost list",_playerUID];
};
};
} else {
//Done in server_playerSync above if player is alive
{[_x,"gear"] call server_updateObject} count (nearestObjects [_playerPos,DayZ_GearedObjects,10]);
};
[_playerUID,_characterID,2,_playerName] call dayz_recordLogin;