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/clif.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'src/map/clif.h') diff --git a/src/map/clif.h b/src/map/clif.h index 40974b063..92f79c994 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -556,13 +556,18 @@ enum CZ_CONFIG { * used with packet 0xAE2 to request the client to open a specific ui **/ enum zc_ui_types { +#if PACKETVER >= 20150128 ZC_BANK_UI = 0, - ZC_STYLIST_UI, - ZC_CAPTCHA_UI, - ZC_MACRO_UI, + ZC_STYLIST_UI = 1, + ZC_CAPTCHA_UI = 2, + ZC_MACRO_UI = 3, +#endif + zc_ui_unused = 4, // for avoid compilation errors +#if PACKETVER >= 20171122 ZC_TIPBOX_UI = 5, - ZC_RENEWQUEST_UI, - ZC_ATTENDANCE_UI + ZC_RENEWQUEST_UI = 6, + ZC_ATTENDANCE_UI = 7 +#endif }; /** -- cgit v1.2.3-60-g2f50