Implemented the player portion of the new actor system.

This commit is contained in:
Filip Maj 2016-01-02 18:17:03 -05:00
parent 93a42c1ba3
commit 360d72b376
9 changed files with 117 additions and 44 deletions

View file

@ -25,10 +25,7 @@ namespace FFXIVClassic_Map_Server.packets.send.Actor
if (displayNameID == 0xFFFFFFFF)
{
if (customName.Length <= 0x20)
binWriter.Write(Encoding.ASCII.GetBytes(customName));
else
binWriter.Write(Encoding.ASCII.GetBytes("ERROR: NAME TO BIG"));
binWriter.Write(Encoding.ASCII.GetBytes(customName), 0, Encoding.ASCII.GetByteCount(customName) >= 0x20 ? 0x19 : Encoding.ASCII.GetByteCount(customName));
}
}