From ff19771c221b8f4687c38095f970671f24c4270d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 6 Jan 2018 20:26:04 +0300 Subject: Move custom keys definition from packets_keys.h into clif.c --- src/map/clif.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index c79a4a1c6..7bce8f218 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -20151,7 +20151,11 @@ void packetdb_loaddb(void) { #include "packets_shuffle.h" #undef packet #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 #undef packetKeys } void clif_bc_ready(void) { -- cgit v1.2.3-70-g09d2