summaryrefslogtreecommitdiff
path: root/src/map/clif.h
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-16 03:20:40 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-16 03:20:40 +0000
commite88a00ab55290e1cb9587b4a05ae8e418be3bba0 (patch)
treeacf72cbece6d8dddd6e31828d434428fa93b7de5 /src/map/clif.h
parentb161e36747dd69ed3d550687d2b7f62aa2f1a706 (diff)
downloadhercules-e88a00ab55290e1cb9587b4a05ae8e418be3bba0.tar.gz
hercules-e88a00ab55290e1cb9587b4a05ae8e418be3bba0.tar.bz2
hercules-e88a00ab55290e1cb9587b4a05ae8e418be3bba0.tar.xz
hercules-e88a00ab55290e1cb9587b4a05ae8e418be3bba0.zip
- 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
Diffstat (limited to 'src/map/clif.h')
-rw-r--r--src/map/clif.h3
1 files changed, 3 insertions, 0 deletions
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*);