- Timestamp:
- Sep 22, 2014, 11:54:56 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/PersistentData/Player.cs
r161 r198 98 98 if (clientInfo != null) { 99 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 100 lastOnline = DateTime.Now; 101 try { 102 Vector3i lastPos = new Vector3i (Entity.GetPosition ()); 103 lastPositionX = lastPos.x; 104 lastPositionY = lastPos.y; 105 lastPositionZ = lastPos.z; 106 totalPlayTime += (long)(Time.timeSinceLevelLoad - Entity.CreationTimeSinceLevelLoad); 107 } catch (NullReferenceException) { 108 Log.Out ("Entity not available. Something seems to be wrong here..."); 109 } 106 110 clientInfo = null; 107 111 }
Note:
See TracChangeset
for help on using the changeset viewer.