diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-05-14 11:04:30 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-05-14 11:04:30 +0000 |
commit | 1a89ef9c1411199ebdfdf87837613a35b72914f1 (patch) | |
tree | d62b4d4734df140d036c5b58aa6c018088b56a47 /src/map/map.h | |
parent | 6f305abdd5de99afd4114d9ed1d9b4df1f166980 (diff) | |
download | hercules-1a89ef9c1411199ebdfdf87837613a35b72914f1.tar.gz hercules-1a89ef9c1411199ebdfdf87837613a35b72914f1.tar.bz2 hercules-1a89ef9c1411199ebdfdf87837613a35b72914f1.tar.xz hercules-1a89ef9c1411199ebdfdf87837613a35b72914f1.zip |
* Some NPC event related cleaning.
- Made event label deprecation message a warning rather than an error, as the scripts still work regardless of whether '::On' is used or not (since r6592).
- Introduced constant EVENT_NAME_LENGTH (51) for all event name struct fields to eliminate size inconsistency across all objects (was 50 and 51).
- Fixed event names, that are considered special attributes, were not wiped when the value was 0 (since r5707).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14817 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.h')
-rw-r--r-- | src/map/map.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/map.h b/src/map/map.h index 456384360..3241efea1 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -159,6 +159,8 @@ enum { #define CHATROOM_PASS_SIZE (8 + 1) //Max allowed chat text length #define CHAT_SIZE_MAX (255 + 1) +//24 for npc name + 24 for label + 2 for a "::" and 1 for EOS +#define EVENT_NAME_LENGTH ( NAME_LENGTH * 2 + 3 ) #define DEFAULT_AUTOSAVE_INTERVAL 5*60*1000 @@ -268,7 +270,7 @@ struct spawn_data { unsigned ai :2; //Holds if mob is special ai. unsigned dynamic :1; //Whether this data is indexed by a map's dynamic mob list } state; - char name[NAME_LENGTH],eventname[50]; //Name/event + char name[NAME_LENGTH],eventname[EVENT_NAME_LENGTH]; //Name/event }; |