Skip to content
Permalink
Browse files

fix /ping saying 'vg' instead of 'Avg'

  • Loading branch information...
UnknownShadow200 committed Nov 26, 2017
1 parent b183800 commit ba2d39ef1fb8510052dd73618565561ca09a2ca1
Showing with 2 additions and 2 deletions.
  1. +1 −1 fCraft/Commands/InfoCommands.cs
  2. +1 −1 fCraft/Network/PacketReader.cs
@@ -2085,7 +2085,7 @@ static void clpHandler(Player player, CommandReader cmd)
}

Player[] list = candidates.Skip(fixOffset(offset, candidates.Count())).Take(10).ToArray();
player.Message("Ping/Latency List: (&ALo&S:&Avg&S:&CHi&S)ms");
player.Message("Ping/Latency List: (&ALo&S:&AAvg&S:&CHi&S)ms");
for (int i = 0; i < list.Length; i++) {
player.Message(" {1}&S - {0}", list[i].Info.ClassyName, list[i].Ping.Format());
}
@@ -42,7 +42,7 @@ sealed class PacketReader : BinaryReader {
byte[] data = ReadBytes( Packet.StringSize );
for( int i = Packet.StringSize - 1; i >= 0; i-- ) {
byte code = data[i];
if (code == 0) code = 0x20; // NULL to space
if (code == 0) code = 0x20; // NULL to space
if (length == 0 && code != 0x20) { length = i + 1; }

// Treat code as an index in code page 437

0 comments on commit ba2d39e

Please sign in to comment.
You can’t perform that action at this time.