- Timestamp:
- Apr 2, 2015, 9:16:34 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/AllocsLogFunctions.cs
r203 r224 31 31 PersistentContainer.Instance.Players [steamId].SetOnline (ci); 32 32 PersistentData.PersistentContainer.Instance.Save (); 33 34 Mods.CallRequestToSpawnPlayer (_clientId, _name, _chunkViewDim, _playerProfile); 33 35 } catch (Exception e) { 34 36 Log.Out ("Error in AllocsLogFunctions.RequestToSpawnPlayer: " + e); … … 36 38 } 37 39 38 public static void PlayerDisconnected (ConnectionManager manager, int _clientId, bool _bShutdown)40 public static void PlayerDisconnected (ConnectionManager manager, ClientInfo _cInfo, bool _bShutdown) 39 41 { 40 42 try { 41 Player p = PersistentContainer.Instance.Players .GetPlayerByClientId (_clientId);43 Player p = PersistentContainer.Instance.Players [_cInfo.playerId]; 42 44 if (p != null) { 43 45 p.SetOffline (); … … 46 48 } 47 49 PersistentData.PersistentContainer.Instance.Save (); 50 51 Mods.CallPlayerDisconnected (_cInfo, _bShutdown); 48 52 } catch (Exception e) { 49 53 Log.Out ("Error in AllocsLogFunctions.PlayerDisconnected: " + e);
Note:
See TracChangeset
for help on using the changeset viewer.