From bfbd8f32351ead7ecf3bbd2915c84d897f7edc37 Mon Sep 17 00:00:00 2001 From: ultramage Date: Wed, 18 Jul 2007 23:07:05 +0000 Subject: - 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 --- src/map/clif.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/map/clif.h') 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); -- cgit v1.2.3-70-g09d2