From 6cdc68d45c5bfe45f0be72d8b1da143ed2a50975 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 14 Mar 2018 02:51:36 +0300 Subject: Introduce defines PACKETVER_MAIN_NUM, PACKETVER_RE_NUM, PACKETVER_ZERO_NUM. PACKETVER_RE_NUM defined to PACKETVER only if defined PACKETVER_RE. PACKETVER_ZERO_NUM defined to PACKETVER only if defined PACKETVER_ZERO. PACKETVER_MAIN_NUM defined to PACKETVER only if not defined PACKETVER_RE and not defined PACKETVER_ZERO. --- src/common/mmo.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/common/mmo.h') diff --git a/src/common/mmo.h b/src/common/mmo.h index f9cbc57de..5e7f22e6e 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -81,6 +81,22 @@ #undef ENABLE_PACKETVER_ZERO #endif // DISABLE_PACKETVER_ZERO +#if !defined(PACKETVER_RE) && !defined(PACKETVER_ZERO) + #define PACKETVER_MAIN_NUM PACKETVER +#else + #define PACKETVER_MAIN_NUM 0 +#endif +#ifdef PACKETVER_RE + #define PACKETVER_RE_NUM PACKETVER +#else + #define PACKETVER_RE_NUM 0 +#endif +#ifdef PACKETVER_ZERO + #define PACKETVER_ZERO_NUM PACKETVER +#else + #define PACKETVER_ZERO_NUM 0 +#endif + // Client support for experimental RagexeRE UI present in 2012-04-10 and 2012-04-18 #if defined(PACKETVER_RE) && ( PACKETVER == 20120410 || PACKETVER == 20120418 ) #define PARTY_RECRUIT -- cgit v1.2.3-60-g2f50