diff options
author | Andrei Karas <akaras@inbox.ru> | 2019-07-04 00:20:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2019-07-24 20:34:46 +0300 |
commit | 29b9e526fc961fad2248f6452e0b5af41bdce1ed (patch) | |
tree | 1eae7dc1c407f557104b1bfb2281524f1efcd808 /src/map/packets_struct.h | |
parent | a690b0b6352b058e7ca26a88325e5089bdb7e026 (diff) | |
download | hercules-29b9e526fc961fad2248f6452e0b5af41bdce1ed.tar.gz hercules-29b9e526fc961fad2248f6452e0b5af41bdce1ed.tar.bz2 hercules-29b9e526fc961fad2248f6452e0b5af41bdce1ed.tar.xz hercules-29b9e526fc961fad2248f6452e0b5af41bdce1ed.zip |
Use struct for packet ZC_ACK_RANKING
Diffstat (limited to 'src/map/packets_struct.h')
-rw-r--r-- | src/map/packets_struct.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 9022dd66d..8415be8ca 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -3480,6 +3480,20 @@ struct PACKET_ZC_REFINE_STATUS { DEFINE_PACKET_HEADER(ZC_REFINE_STATUS, 0x0ada); #endif +struct PACKET_ZC_ACK_RANKING_sub { + char name[NAME_LENGTH]; + uint32 points; +} __attribute__((packed)); + +#if PACKETVER_MAIN_NUM >= 20130605 || PACKETVER_RE_NUM >= 20130529 || defined(PACKETVER_ZERO) +struct PACKET_ZC_ACK_RANKING { + int16 packetType; + int16 rankType; + struct PACKET_ZC_ACK_RANKING_sub ranks[10]; + uint32 myPoints; +} __attribute__((packed)); +DEFINE_PACKET_HEADER(ZC_ACK_RANKING, 0x097d); +#endif #if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute #pragma pack(pop) |