- Timestamp:
- Aug 30, 2014, 6:11:18 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/CommonMappingFunctions.cs
r130 r144 136 136 { 137 137 try { 138 int entityId = -1; 139 if (int.TryParse (_nameOrId, out entityId)) { 140 ClientInfo ci = GetClientInfoFromEntityID (entityId); 141 if (ci != null) 142 return ci; 138 long tempLong; 139 if (_nameOrId.Length == 17 && long.TryParse (_nameOrId, out tempLong)) { 140 return GetClientInfoFromSteamID (_nameOrId); 141 } else { 142 int entityId = -1; 143 if (int.TryParse (_nameOrId, out entityId)) { 144 ClientInfo ci = GetClientInfoFromEntityID (entityId); 145 if (ci != null) 146 return ci; 147 } 148 149 return GetClientInfoFromPlayerName (_nameOrId, ignoreColorcodes); 143 150 } 144 145 return GetClientInfoFromPlayerName (_nameOrId, ignoreColorcodes);146 151 } catch (Exception e) { 147 Log.Out ("Error getting ClientInfo for entity ID or player name: " + e);152 Log.Out ("Error getting ClientInfo for steam ID / entity ID / player name \"" + _nameOrId + "\": " + e); 148 153 } 149 154 return null;
Note:
See TracChangeset
for help on using the changeset viewer.