Changeset 159
- Timestamp:
- Sep 3, 2014, 2:35:10 PM (10 years ago)
- Location:
- binary-improvements
- Files:
-
- 6 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 } -
binary-improvements/assembly-patcher/Main.cs
r144 r159 64 64 TypeDefinition type = module.GetType ("GameManager"); 65 65 addHook (type, "RequestToSpawnPlayer", true, 5, true, typeof(AllocsFixes.AllocsLogFunctions).GetMethod ("RequestToSpawnPlayer")); 66 addHook (type, "PlayerDisconnected", true, 1, false, typeof(AllocsFixes.AllocsLogFunctions).GetMethod ("PlayerDisconnected")); 66 type = module.GetType ("ConnectionManager"); 67 addHook (type, "RemovePlayer", true, 2, false, typeof(AllocsFixes.AllocsLogFunctions).GetMethod ("PlayerDisconnected")); 67 68 } 68 69 -
binary-improvements/bin/Release/7dtd-server-fixes_version.txt
r158 r159 1 Version: 0.91.5359.2 42161 Version: 0.91.5359.26222
Note:
See TracChangeset
for help on using the changeset viewer.