summaryrefslogtreecommitdiff
path: root/src/common/mmo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-08-22 01:34:48 +0300
committerAndrei Karas <akaras@inbox.ru>2018-08-25 00:37:55 +0300
commit88081dd414142d1dc2e1029b943fb4a87789dc32 (patch)
tree8b4bb0e0dd8070ec102f01b3ca71737ec3783439 /src/common/mmo.h
parent05af69b6dcdc5fddac4da8ebfdd2ff9036e41c90 (diff)
downloadhercules-88081dd414142d1dc2e1029b943fb4a87789dc32.tar.gz
hercules-88081dd414142d1dc2e1029b943fb4a87789dc32.tar.bz2
hercules-88081dd414142d1dc2e1029b943fb4a87789dc32.tar.xz
hercules-88081dd414142d1dc2e1029b943fb4a87789dc32.zip
Add support for build for AD clients.
Add configure flag --enable-packetver-ad Add defines for AD into mmo.h Add messages list for AD clients.
Diffstat (limited to 'src/common/mmo.h')
-rw-r--r--src/common/mmo.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h
index 7f9e7b13d..3f0d4dea4 100644
--- a/src/common/mmo.h
+++ b/src/common/mmo.h
@@ -88,7 +88,14 @@
#undef ENABLE_PACKETVER_SAK
#endif // DISABLE_PACKETVER_SAK
-#if !defined(PACKETVER_RE) && !defined(PACKETVER_ZERO) && !defined(PACKETVER_SAK)
+//Uncomment the following line if your client is ragexeAD
+//#define ENABLE_PACKETVER_AD
+#ifdef ENABLE_PACKETVER_AD
+ #define PACKETVER_AD
+ #undef ENABLE_PACKETVER_AD
+#endif // DISABLE_PACKETVER_AD
+
+#if !defined(PACKETVER_RE) && !defined(PACKETVER_ZERO) && !defined(PACKETVER_SAK) && !defined(PACKETVER_AD)
#define PACKETVER_MAIN_NUM PACKETVER
#else
#define PACKETVER_MAIN_NUM 0
@@ -108,6 +115,11 @@
#else
#define PACKETVER_SAK_NUM 0
#endif
+#ifdef PACKETVER_AD
+ #define PACKETVER_AD_NUM PACKETVER
+#else
+ #define PACKETVER_AD_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 )