From ef8ee07753bfbf824e57eafc617acc7d921c0f38 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 13 Jun 2018 05:27:56 +0300 Subject: Split enum zc_ui_types by supported packet versions. Also fixed clif_open_ui for old clients. --- src/map/packets_struct.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/map/packets_struct.h') diff --git a/src/map/packets_struct.h b/src/map/packets_struct.h index 971e7c330..d152ffd2a 100644 --- a/src/map/packets_struct.h +++ b/src/map/packets_struct.h @@ -368,6 +368,11 @@ enum packet_headers { questUpdateType = 0x2b5, #endif // PACKETVER < 20150513 questUpdateType2 = 0x8fe, +#if PACKETVER >= 20171122 + openUiType = 0xAE2, +#elif PACKETVER >= 20150128 + openUiType = 0xA38, +#endif }; #if !defined(sun) && (!defined(__NETBSD__) || __NetBSD_Version__ >= 600000000) // NetBSD 5 and Solaris don't like pragma pack but accept the packed attribute @@ -1720,7 +1725,9 @@ struct PACKET_CZ_OPEN_UI { struct PACKET_ZC_OPEN_UI { int16 PacketType; int8 UIType; +#if PACKETVER >= 20171122 int32 data; +#endif } __attribute__((packed)); struct PACKET_ZC_UI_ACTION { -- cgit v1.2.3-70-g09d2