diff options
| author | Ovahlord <dreadkiller@gmx.de> | 2024-06-06 14:04:40 +0200 |
|---|---|---|
| committer | Ovahlord <dreadkiller@gmx.de> | 2024-06-06 14:04:40 +0200 |
| commit | 59501586ce6379aff1bbb6f408b4ac86771c2129 (patch) | |
| tree | fbade06107b340017194a03ac8502dc0c872c2c9 /src | |
| parent | be00f49a12bc8406de153fb9c5f0d658ad851d65 (diff) | |
Core/Packets: updated account data packets to 10.2.6 which shares their structure with 4.4.0
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Server/Packets/ClientConfigPackets.cpp | 10 | ||||
| -rw-r--r-- | src/server/game/Server/Packets/ClientConfigPackets.h | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/server/game/Server/Packets/ClientConfigPackets.cpp b/src/server/game/Server/Packets/ClientConfigPackets.cpp index 2b25c4eabe7..5b9bb2d8f82 100644 --- a/src/server/game/Server/Packets/ClientConfigPackets.cpp +++ b/src/server/game/Server/Packets/ClientConfigPackets.cpp @@ -37,15 +37,15 @@ WorldPacket const* WorldPackets::ClientConfig::ClientCacheVersion::Write() void WorldPackets::ClientConfig::RequestAccountData::Read() { _worldPacket >> PlayerGuid; - DataType = _worldPacket.ReadBits(4); + _worldPacket >> DataType; } WorldPacket const* WorldPackets::ClientConfig::UpdateAccountData::Write() { - _worldPacket << Player; _worldPacket << Time; _worldPacket << uint32(Size); - _worldPacket.WriteBits(DataType, 4); + _worldPacket << Player; + _worldPacket << int32(DataType); _worldPacket << uint32(CompressedData.size()); _worldPacket.append(CompressedData); @@ -54,10 +54,10 @@ WorldPacket const* WorldPackets::ClientConfig::UpdateAccountData::Write() void WorldPackets::ClientConfig::UserClientUpdateAccountData::Read() { - _worldPacket >> PlayerGuid; _worldPacket >> Time; _worldPacket >> Size; - DataType = _worldPacket.ReadBits(4); + _worldPacket >> PlayerGuid; + _worldPacket >> DataType; uint32 compressedSize = _worldPacket.read<uint32>(); if (compressedSize > _worldPacket.size() - _worldPacket.rpos()) diff --git a/src/server/game/Server/Packets/ClientConfigPackets.h b/src/server/game/Server/Packets/ClientConfigPackets.h index 5d6ffcccec6..684231af0fe 100644 --- a/src/server/game/Server/Packets/ClientConfigPackets.h +++ b/src/server/game/Server/Packets/ClientConfigPackets.h @@ -56,7 +56,7 @@ namespace WorldPackets void Read() override; ObjectGuid PlayerGuid; - uint8 DataType = 0; ///< @see enum AccountDataType + int32 DataType = 0; ///< @see enum AccountDataType }; class UpdateAccountData final : public ServerPacket @@ -69,7 +69,7 @@ namespace WorldPackets ObjectGuid Player; Timestamp<> Time; uint32 Size = 0; ///< decompressed size - uint8 DataType = 0; ///< @see enum AccountDataType + int32 DataType = 0; ///< @see enum AccountDataType ByteBuffer CompressedData; }; @@ -83,7 +83,7 @@ namespace WorldPackets ObjectGuid PlayerGuid; Timestamp<> Time; uint32 Size = 0; ///< decompressed size - uint8 DataType = 0; ///< @see enum AccountDataType + int32 DataType = 0; ///< @see enum AccountDataType ByteBuffer CompressedData; }; |
