summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/clif.c4
-rw-r--r--src/map/packets_keys.h4
2 files changed, 4 insertions, 4 deletions
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) {
diff --git a/src/map/packets_keys.h b/src/map/packets_keys.h
index 61b1ac2b5..feb0a76ec 100644
--- a/src/map/packets_keys.h
+++ b/src/map/packets_keys.h
@@ -1896,8 +1896,4 @@
#endif // PACKETVER_ZERO
-#if defined(OBFUSCATIONKEY1) && defined(OBFUSCATIONKEY2) && defined(OBFUSCATIONKEY3)
- packetKeys(OBFUSCATIONKEY1,OBFUSCATIONKEY2,OBFUSCATIONKEY3);
-#endif
-
#endif /* MAP_PACKETS_KEYS_H */