Core/DataStores: Support all new hotfix status values
Port From (https://github.com/TrinityCore/TrinityCore/commit/c86cffe5ef95d87929d954abe36d96fe9edb68e3)
This commit is contained in:
@@ -144,21 +144,13 @@ namespace Game.Networking.Packets
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
Record.Write(data);
|
||||
if (Size.HasValue)
|
||||
{
|
||||
data.WriteUInt32(Size.Value);
|
||||
data.WriteBits(1, 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
data.WriteUInt32(0);
|
||||
data.WriteBits(3, 2);
|
||||
}
|
||||
data.WriteUInt32(Size);
|
||||
data.WriteBits((byte)Record.HotfixStatus, 2);
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
public HotfixRecord Record;
|
||||
public Optional<uint> Size;
|
||||
public HotfixRecord Record = new HotfixRecord();
|
||||
public uint Size;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user