Changeset 324 for binary-improvements/MapRendering/Web
- Timestamp:
- Sep 3, 2018, 7:11:10 PM (6 years ago)
- Location:
- binary-improvements/MapRendering/Web/API
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/API/GetPlayerList.cs
r309 r324 153 153 Match filterMatch = numberFilterMatcher.Match (_filterVal); 154 154 if (filterMatch.Success) { 155 double value = Utils.ParseDouble (filterMatch.Groups [2].Value);155 double value = StringParsers.ParseDouble (filterMatch.Groups [2].Value); 156 156 NumberMatchType matchType; 157 157 double epsilon = value / 100000; -
binary-improvements/MapRendering/Web/API/GetPlayersOnline.cs
r309 r324 15 15 World w = GameManager.Instance.World; 16 16 foreach (KeyValuePair<int, EntityPlayer> current in w.Players.dict) { 17 ClientInfo ci = ConnectionManager.Instance. GetClientInfoForEntityId (current.Key);17 ClientInfo ci = ConnectionManager.Instance.Clients.ForEntityId (current.Key); 18 18 Player player = PersistentContainer.Instance.Players [ci.playerId, false]; 19 19 … … 32 32 33 33 // Deprecated! 34 p.Add ("experience", new JSONNumber ( player != null ? player.Experience : 0));34 p.Add ("experience", new JSONNumber (-1)); 35 35 36 36 p.Add ("level", new JSONNumber (player != null ? player.Level : -1));
Note:
See TracChangeset
for help on using the changeset viewer.