diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-07-18 23:07:05 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-07-18 23:07:05 +0000 |
commit | bfbd8f32351ead7ecf3bbd2915c84d897f7edc37 (patch) | |
tree | 97c18bf7366c929237ce3031a6eeb6ca3e6dcb9b /src/map/clif.h | |
parent | af20ef5474de8cc2cd1353597a47b8910cb2057b (diff) | |
download | hercules-bfbd8f32351ead7ecf3bbd2915c84d897f7edc37.tar.gz hercules-bfbd8f32351ead7ecf3bbd2915c84d897f7edc37.tar.bz2 hercules-bfbd8f32351ead7ecf3bbd2915c84d897f7edc37.tar.xz hercules-bfbd8f32351ead7ecf3bbd2915c84d897f7edc37.zip |
- Small update to the effects list (new exe's effects by Au{R}oN)
- No sending of the pet_equip packet when pet has no equip (thx to Skotlex)
- Added back exp gain limiting for old formula to stop exploits (see r8177)
- Now a message is printed when the packet_ver filter rejects someone
- Renamed two structs using same name as variables (MSVC debugger issue)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10886 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.h')
-rw-r--r-- | src/map/clif.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/clif.h b/src/map/clif.h index 9186d8e7c..b91b8d9a7 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -10,12 +10,17 @@ #define MAX_PACKET_DB 0x300 #define MAX_PACKET_VER 21 -struct packet_db { +struct packet_db_t { short len; void (*func)(int, struct map_session_data *); short pos[20]; }; +// packet_db[SERVER] is reserved for server use +#define SERVER 0 +#define packet_len(x) packet_db[SERVER][x].len +extern struct packet_db_t packet_db[MAX_PACKET_VER + 1][MAX_PACKET_DB + 1]; + // local define enum send_target { ALL_CLIENT, @@ -45,11 +50,6 @@ enum send_target { SELF, }; -// packet_db[SERVER] is reserved 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 + 1]; - int clif_setip(const char* ip); void clif_setbindip(const char* ip); void clif_setport(uint16 port); |