35 lines
1.6 KiB
Diff
35 lines
1.6 KiB
Diff
--- a/PartyPackets.h
|
|
+++ b/PartyPackets.h
|
|
@@ -21,0 +22 @@
|
|
+#include "ClassicOpcodes.h"
|
|
@@ -606,0 +608,8 @@
|
|
+ // Classic 1.60 client 70291 and later (official sniffs 70245 vs 70338); taken from the realm build
|
|
+ bool Classic70291 = ClassicOpcodes::IsBuild70291OrLater();
|
|
+
|
|
+ // client 70291: the Classic reader takes one signed byte before the leader guid and one 64 bit value before the member
|
|
+ // count that the retail layout does not have. The party handler does not use either (the official 70338 server sends 1 and 0).
|
|
+ int8 Classic70291_BeforeLeader = 0;
|
|
+ uint64 Classic70291_BeforeMemberCount = 0;
|
|
+
|
|
--- a/PartyPackets.cpp
|
|
+++ b/PartyPackets.cpp
|
|
@@ -492 +492 @@
|
|
-ByteBuffer& operator<<(ByteBuffer& data, PartyPlayerInfo const& playerInfo)
|
|
+static ByteBuffer& WritePlayerInfo(ByteBuffer& data, PartyPlayerInfo const& playerInfo, bool classic70291)
|
|
@@ -495 +495,5 @@
|
|
- data << SizedCString::BitsSize<6>(playerInfo.VoiceStateID);
|
|
+ // client 70291 reads the voice state id size in 9 bits (6 in retail and 70245): header 6 + 9 + 3 flags = 3 bytes
|
|
+ if (classic70291)
|
|
+ data << SizedCString::BitsSize<9>(playerInfo.VoiceStateID);
|
|
+ else
|
|
+ data << SizedCString::BitsSize<6>(playerInfo.VoiceStateID);
|
|
@@ -572,0 +577,2 @@
|
|
+ if (Classic70291)
|
|
+ _worldPacket << int8(Classic70291_BeforeLeader);
|
|
@@ -575,0 +582,2 @@
|
|
+ if (Classic70291)
|
|
+ _worldPacket << uint64(Classic70291_BeforeMemberCount);
|
|
@@ -579 +587 @@
|
|
- _worldPacket << playerInfos;
|
|
+ WritePlayerInfo(_worldPacket, playerInfos, Classic70291);
|