Преглед на файлове

- Moved packet_len_table values to packet_db[SERVER].
- When an invalid packet_ver is found, all it's entries are discarted intead of just stopping the parsing.

whew, I'm glad regular expressions exist. =D
I'd also like to apologize for the previous revision.
That build wouldn't work because I commented out the contents of packet_len_table, resulting in packet sizes being 0 (or whatever is the default value for variables).
Got lazy, won't happen again... =X

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9507 54d463be-8e91-2dee-dedb-b68131a5f0ec

FlavioJS преди 18 години
родител
ревизия
08424f7e76
променени са 3 файла, в които са добавени 139 реда и са изтрити 194 реда
  1. 3 0
      Changelog-Trunk.txt
  2. 133 194
      src/map/clif.c
  3. 3 0
      src/map/clif.h

+ 3 - 0
Changelog-Trunk.txt

@@ -4,6 +4,9 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/12/16
+	* Moved packet_len_table values to packet_db[SERVER].
+	* When an invalid packet_ver is found, all it's entries are discarted 
+	  intead of just stopping the parsing.
 	* Increased MAX_PACKET_DB to 0x300 and added a warning for when packet ids 
 	  greater than MAX_PACKET_DB are found. [FlavioJS]
 2006/12/15

Файловите разлики са ограничени, защото са твърде много
+ 133 - 194
src/map/clif.c


+ 3 - 0
src/map/clif.h

@@ -48,6 +48,9 @@ enum {
 	DUEL_WOS
 };
 
+// packet_db[SERVER] is reserver for server use
+#define SERVER 0
+#define packet_len(x) packet_db[SERVER][x].len
 extern struct packet_db packet_db[MAX_PACKET_VER + 1][MAX_PACKET_DB];
 
 int clif_setip(char*);

Някои файлове не бяха показани, защото твърде много файлове са промени