summaryrefslogtreecommitdiff
path: root/src/map/packets_struct.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-09-02 09:47:56 +0300
committerAndrei Karas <akaras@inbox.ru>2019-09-18 22:31:51 +0300
commit04732bc51794573756b02510a56e530368d806c5 (patch)
tree2ace8d9d37d57a9302de5d582344efaff05312dc /src/map/packets_struct.h
parentc2445e45345967a7a80202e794f680e31b1e9b0d (diff)
downloadhercules-04732bc51794573756b02510a56e530368d806c5.tar.gz
hercules-04732bc51794573756b02510a56e530368d806c5.tar.bz2
hercules-04732bc51794573756b02510a56e530368d806c5.tar.xz
hercules-04732bc51794573756b02510a56e530368d806c5.zip
Fix packet ZC_ACK_RANKING for old clients
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r--src/map/packets_struct.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h
index 79ecabc46..93b4abcca 100644
--- a/src/map/packets_struct.h
+++ b/src/map/packets_struct.h
@@ -3460,6 +3460,14 @@ struct PACKET_ZC_REFINE_STATUS {
DEFINE_PACKET_HEADER(ZC_REFINE_STATUS, 0x0ada);
#endif
+struct PACKET_ZC_ACK_RANKING_name {
+ char name[NAME_LENGTH];
+} __attribute__((packed));
+
+struct PACKET_ZC_ACK_RANKING_points {
+ uint32 points;
+} __attribute__((packed));
+
#if PACKETVER_MAIN_NUM >= 20190731 || PACKETVER_RE_NUM >= 20190703 || PACKETVER_ZERO_NUM >= 20190724
struct PACKET_ZC_ACK_RANKING_sub {
char name[NAME_LENGTH];
@@ -3476,21 +3484,22 @@ struct PACKET_ZC_ACK_RANKING {
DEFINE_PACKET_HEADER(ZC_ACK_RANKING, 0x0af6);
#elif PACKETVER_MAIN_NUM >= 20130605 || PACKETVER_RE_NUM >= 20130529 || defined(PACKETVER_ZERO)
struct PACKET_ZC_ACK_RANKING_sub {
- char name[NAME_LENGTH];
- uint32 points;
+ struct PACKET_ZC_ACK_RANKING_name names[10];
+ struct PACKET_ZC_ACK_RANKING_points points[10];
} __attribute__((packed));
struct PACKET_ZC_ACK_RANKING {
int16 packetType;
int16 rankType;
- struct PACKET_ZC_ACK_RANKING_sub ranks[10];
+ struct PACKET_ZC_ACK_RANKING_sub ranks;
uint32 myPoints;
} __attribute__((packed));
+
DEFINE_PACKET_HEADER(ZC_ACK_RANKING, 0x097d);
#else
struct PACKET_ZC_ACK_RANKING_sub {
- char name[NAME_LENGTH];
- uint32 points;
+ struct PACKET_ZC_ACK_RANKING_name names[10];
+ struct PACKET_ZC_ACK_RANKING_points points[10];
} __attribute__((packed));
#endif