Changeset 161 for binary-improvements/7dtd-server-fixes/src
- Timestamp:
- Sep 4, 2014, 1:38:56 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/PersistentData/Player.cs
r154 r161 33 33 34 34 public string Name { 35 get { return name ; }35 get { return name == null ? string.Empty : name; } 36 36 } 37 37 38 38 public string IP { 39 get { return ip ; }39 get { return ip == null ? string.Empty : ip; } 40 40 } 41 41 … … 96 96 public void SetOffline () 97 97 { 98 Log.Out ("Player set to offline: " + steamId); 99 Vector3i lastPos = new Vector3i (Entity.GetPosition ()); 100 lastPositionX = lastPos.x; 101 lastPositionY = lastPos.y; 102 lastPositionZ = lastPos.z; 103 totalPlayTime += (long)(Time.timeSinceLevelLoad - Entity.CreationTimeSinceLevelLoad); 104 lastOnline = DateTime.Now; 105 clientInfo = null; 98 if (clientInfo != null) { 99 Log.Out ("Player set to offline: " + steamId); 100 Vector3i lastPos = new Vector3i (Entity.GetPosition ()); 101 lastPositionX = lastPos.x; 102 lastPositionY = lastPos.y; 103 lastPositionZ = lastPos.z; 104 totalPlayTime += (long)(Time.timeSinceLevelLoad - Entity.CreationTimeSinceLevelLoad); 105 lastOnline = DateTime.Now; 106 clientInfo = null; 107 } 106 108 } 107 109
Note:
See TracChangeset
for help on using the changeset viewer.