Просмотр исходного кода

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

aleos89 10 лет назад
Родитель
Сommit
bae469e6c6
2 измененных файлов с 2 добавлено и 1 удалено
  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
 
 /**