From e88a00ab55290e1cb9587b4a05ae8e418be3bba0 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Sat, 16 Dec 2006 03:20:40 +0000 Subject: - 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://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9507 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/clif.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/clif.h') diff --git a/src/map/clif.h b/src/map/clif.h index c047c4d5e..6edf5eef5 100644 --- a/src/map/clif.h +++ b/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*); -- cgit v1.2.3-70-g09d2