From f20c6c19cda1c672ed93836ddd33ce8e08e104c9 Mon Sep 17 00:00:00 2001 From: ultramage Date: Thu, 18 Oct 2007 12:49:49 +0000 Subject: * Removed commented-out code for check_fake_id() * Merged improved/cleaned up (WiP) code for clif_parse_WisMessage * Removed the requirement to provide a character name in the message string when calling is_atcommand() (needed for the previous fix) - currently both ways work, but old will be removed in the upcoming command cleanup so please adjust your custom code if you use this! * Added clif_process_message(), an unified way to validate all four types of player message packets and retrieve their components * Applied the new checking function to clif code, this fixes various length mismatches caused by incomplete code in r11386 (bugreport:198) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11507 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/mmo.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/common/mmo.h') diff --git a/src/common/mmo.h b/src/common/mmo.h index ddc43ebbf..18b724e56 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -74,12 +74,12 @@ //For character names, title names, guilds, maps, etc. //Includes null-terminator as it is the length of the array. -#define NAME_LENGTH 24 +#define NAME_LENGTH (23 + 1) //For item names, which tend to have much longer names. #define ITEM_NAME_LENGTH 50 //For Map Names, which the client considers to be 16 in length including the .gat extension -#define MAP_NAME_LENGTH 12 -#define MAP_NAME_LENGTH_EXT 16 +#define MAP_NAME_LENGTH (11 + 1) +#define MAP_NAME_LENGTH_EXT (MAP_NAME_LENGTH + 4) #define MAX_FRIENDS 40 #define MAX_MEMOPOINTS 10 -- cgit v1.2.3-60-g2f50