diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-03-14 02:51:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-29 20:59:31 +0300 |
commit | 6cdc68d45c5bfe45f0be72d8b1da143ed2a50975 (patch) | |
tree | 72b05507bacc16bdf68b862d58f30ee1e7282215 | |
parent | 584e8de359412091cb05f98b83a25fac47b5c9f2 (diff) | |
download | hercules-6cdc68d45c5bfe45f0be72d8b1da143ed2a50975.tar.gz hercules-6cdc68d45c5bfe45f0be72d8b1da143ed2a50975.tar.bz2 hercules-6cdc68d45c5bfe45f0be72d8b1da143ed2a50975.tar.xz hercules-6cdc68d45c5bfe45f0be72d8b1da143ed2a50975.zip |
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.
-rw-r--r-- | src/common/mmo.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 |