summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-01-06 21:12:45 +0300
committerAndrei Karas <akaras@inbox.ru>2018-01-14 18:06:01 +0300
commita2d21de7a19a2e060a4d3324853f2200ec42ab23 (patch)
tree2448f5b92251bc12fc28f4e3d290791faaf85fc1 /src/map/clif.c
parentff19771c221b8f4687c38095f970671f24c4270d (diff)
downloadhercules-a2d21de7a19a2e060a4d3324853f2200ec42ab23.tar.gz
hercules-a2d21de7a19a2e060a4d3324853f2200ec42ab23.tar.bz2
hercules-a2d21de7a19a2e060a4d3324853f2200ec42ab23.tar.xz
hercules-a2d21de7a19a2e060a4d3324853f2200ec42ab23.zip
Split packet_keys.h to main client keys and zero client keys.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 7bce8f218..235dc6d19 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -20153,9 +20153,13 @@ void packetdb_loaddb(void) {
#define packetKeys(a,b,c) do { clif->cryptKey[0] = (a); clif->cryptKey[1] = (b); clif->cryptKey[2] = (c); } while(0)
#if defined(OBFUSCATIONKEY1) && defined(OBFUSCATIONKEY2) && defined(OBFUSCATIONKEY3)
packetKeys(OBFUSCATIONKEY1,OBFUSCATIONKEY2,OBFUSCATIONKEY3);
-#else
-#include "packets_keys.h"
-#endif
+#else // defined(OBFUSCATIONKEY1) && defined(OBFUSCATIONKEY2) && defined(OBFUSCATIONKEY3)
+#ifdef PACKETVER_ZERO
+#include "packets_keys_zero.h"
+#else // PACKETVER_ZERO
+#include "packets_keys_main.h"
+#endif // PACKETVER_ZERO
+#endif // defined(OBFUSCATIONKEY1) && defined(OBFUSCATIONKEY2) && defined(OBFUSCATIONKEY3)
#undef packetKeys
}
void clif_bc_ready(void) {