Parcourir la source

Follow up to 9d247d8
* Disable Packet Obfuscation if it's enabled and client version is below 2011-08-17.

aleos89 il y a 10 ans
Parent
commit
bae469e6c6
2 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 1 1
      src/common/mmo.h
  2. 1 0
      src/config/core.h

+ 1 - 1
src/common/mmo.h

@@ -828,7 +828,7 @@ enum bound_type {
 
 #ifdef PACKET_OBFUSCATION
 	#if PACKETVER < 20110817
-	#error core.h::PACKET_OBFUSCATION is enabled, it requires PACKETVER 20110817 or newer
+		#undef PACKET_OBFUSCATION
 	#endif
 #endif
 

+ 1 - 0
src/config/core.h

@@ -96,6 +96,7 @@
 /// Comment to disable the official packet obfuscation support.
 /// When enabled, make sure there is value for 'packet_keys' of used packet version or
 /// defined 'packet_keys_use' in db/[import/]packet_db.txt.
+/// This requires PACKETVER 2011-08-17 or newer.
 #define PACKET_OBFUSCATION
 
 /**