Fixed string getting cut off if the string had some symbols. The length of the string would not be the same as the bytes length.
This commit is contained in:
@@ -243,7 +243,7 @@ namespace Game.Network.Packets
|
||||
data.WriteUInt32(MaxHealth);
|
||||
data .WriteUInt32( Speed);
|
||||
data .WriteUInt8( Quality);
|
||||
data.WriteBits(Name.Length, 7);
|
||||
data.WriteBits(Name.GetByteCount(), 7);
|
||||
data.WriteBit(OwnerInfo.HasValue); // HasOwnerInfo
|
||||
data.WriteBit(Name.IsEmpty()); // NoRename
|
||||
data.FlushBits();
|
||||
|
||||
Reference in New Issue
Block a user