Changeset 159 for binary-improvements/7dtd-server-fixes/src
- Timestamp:
- Sep 3, 2014, 2:35:10 PM (10 years ago)
- Location:
- binary-improvements/7dtd-server-fixes/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/AllocsLogFunctions.cs
r156 r159 29 29 ); 30 30 31 PersistentContainer.Instance.Players [steamId].SetOnline(ci);31 PersistentContainer.Instance.Players [steamId].SetOnline (ci); 32 32 PersistentData.PersistentContainer.Instance.Save (); 33 33 } catch (Exception e) { … … 36 36 } 37 37 38 public static void PlayerDisconnected (GameManager manager, int _clientId) { 38 public static void PlayerDisconnected (ConnectionManager manager, int _clientId, bool _bShutdown) 39 { 39 40 try { 40 Player p = PersistentContainer.Instance.Players.GetPlayerByClientId (_clientId);41 Player p = PersistentContainer.Instance.Players.GetPlayerByClientId (_clientId); 41 42 if (p != null) { 42 p.SetOffline ();43 p.SetOffline (); 43 44 } 44 45 PersistentData.PersistentContainer.Instance.Save (); -
binary-improvements/7dtd-server-fixes/src/PersistentData/Players.cs
r156 r159 38 38 { 39 39 foreach (Player p in players.Values) { 40 if (p.ClientInfo .clientId == _clientid) {40 if (p.ClientInfo != null && p.ClientInfo.clientId == _clientid) { 41 41 return p; 42 42 }
Note:
See TracChangeset
for help on using the changeset viewer.