Changeset 189 for binary-improvements/7dtd-server-fixes/src/PersistentData
- Timestamp:
- Sep 12, 2014, 11:14:11 AM (10 years ago)
- Location:
- binary-improvements/7dtd-server-fixes/src/PersistentData
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/PersistentData/Inventory.cs
r163 r189 27 27 private void ProcessInv (List<InvItem> target, InventoryField[] sourceFields) 28 28 { 29 Monitor.Enter (target); 30 try { 29 lock (target) { 31 30 target.Clear (); 32 31 for (int i = 0; i < sourceFields.Length; i++) { … … 40 39 } 41 40 } 42 } finally {43 Monitor.Exit (target);44 41 } 45 42 } -
binary-improvements/7dtd-server-fixes/src/PersistentData/Players.cs
r159 r189 45 45 } 46 46 47 public Player GetPlayerByNameOrId (string _nameOrId, bool _ignoreColorCodes) 48 { 49 string sid = GetSteamID(_nameOrId, _ignoreColorCodes); 50 if (sid != null) 51 return this[sid]; 52 else 53 return null; 54 } 55 47 56 public string GetSteamID (string _nameOrId, bool _ignoreColorCodes) 48 57 {
Note:
See TracChangeset
for help on using the changeset viewer.