diff options
author | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-13 03:57:09 +0000 |
---|---|---|
committer | celest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2005-01-13 03:57:09 +0000 |
commit | d2611758dfd1460e2b2d07e05ca5524a057953ef (patch) | |
tree | b73449e8846def4f379a72ec6db209464731fb49 /src/map/clif.h | |
parent | a52cfe8ebc4b590d1147d4768ad59237ffcdd607 (diff) | |
download | hercules-d2611758dfd1460e2b2d07e05ca5524a057953ef.tar.gz hercules-d2611758dfd1460e2b2d07e05ca5524a057953ef.tar.bz2 hercules-d2611758dfd1460e2b2d07e05ca5524a057953ef.tar.xz hercules-d2611758dfd1460e2b2d07e05ca5524a057953ef.zip |
* Updated packet_db.txt loading to support reading into multiple packet versions
* Integrated packet size and function DB's into 1 packet_db
* Removed packet_db_ver defining in packet_db.txt -- it'll determine itself based on MAX_PACKET_VER
* Added MAX_PACKET_VER -- maximum versions supported by eA -- and changed packet size and function DB's to use it
* When sending 'Game exe not latest version' packet don't close the session immediately so it will still be delivered
* Added map-server display if an unidentified client was rejected -- also fixes the 'empty string sent to _showmessage'
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@965 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.h')
-rw-r--r-- | src/map/clif.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/clif.h b/src/map/clif.h index d1b24f223..d0cd2e86e 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -13,7 +13,8 @@ typedef unsigned int in_addr_t; #include "map.h" -#define MAX_PACKET_DB 0x224 +#define MAX_PACKET_DB 0x224 +#define MAX_PACKET_VER 17 extern int packet_db_ver; struct packet_db { @@ -21,6 +22,7 @@ struct packet_db { void (*func)(); short pos[20]; }; +extern struct packet_db packet_db[MAX_PACKET_VER + 1][MAX_PACKET_DB]; void clif_setip(char*); void clif_setport(int); |