diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-10-28 12:33:30 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-10-28 12:33:30 +0000 |
commit | 5b3532830e8c18baea99eccaa21a5c7569f8d02d (patch) | |
tree | fdbee1bf48e372a16ae833c8996aad27c3e808d0 /src/map/clif.h | |
parent | fb33ba865eb09eef71ed38adbd141b6d771321b8 (diff) | |
download | hercules-5b3532830e8c18baea99eccaa21a5c7569f8d02d.tar.gz hercules-5b3532830e8c18baea99eccaa21a5c7569f8d02d.tar.bz2 hercules-5b3532830e8c18baea99eccaa21a5c7569f8d02d.tar.xz hercules-5b3532830e8c18baea99eccaa21a5c7569f8d02d.zip |
* Fixed db/packet_db.txt reading not checking for max. amount of positions.
* Introduced MAX_GUILD_SKILL_REQUIRE to fix inconsistency in amount of prereq. guild skills.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14985 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.h')
-rw-r--r-- | src/map/clif.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/map/clif.h b/src/map/clif.h index e34ff55a0..783c8f4a1 100644 --- a/src/map/clif.h +++ b/src/map/clif.h @@ -27,14 +27,18 @@ struct battleground_data; struct quest; struct party_booking_ad_info; #include <stdarg.h> -// packet DB -#define MAX_PACKET_DB 0x900 -#define MAX_PACKET_VER 26 + +enum +{// packet DB + MAX_PACKET_DB = 0x900, + MAX_PACKET_VER = 26, + MAX_PACKET_POS = 20, +}; struct s_packet_db { short len; void (*func)(int, struct map_session_data *); - short pos[20]; + short pos[MAX_PACKET_POS]; }; // packet_db[SERVER] is reserved for server use |