diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-07-02 10:33:38 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-07-02 10:33:38 +0000 |
commit | 179b9771be97e87168b39799bdbf82767d46fc45 (patch) | |
tree | 5b4888426c7d4d9fb879ef1b894d4dc1b92ea6b4 /src/map/instance.h | |
parent | 0361920446e9311979b5187abf123ba8e055d944 (diff) | |
download | hercules-179b9771be97e87168b39799bdbf82767d46fc45.tar.gz hercules-179b9771be97e87168b39799bdbf82767d46fc45.tar.bz2 hercules-179b9771be97e87168b39799bdbf82767d46fc45.tar.xz hercules-179b9771be97e87168b39799bdbf82767d46fc45.zip |
* Random updates to instance system.
- Introduced a constant for instance name length.
- Corrected comments related to instance packets 0x2cb (ZC_MEMORIALDUNGEON_SUBSCRIPTION_INFO) and 0x2ce (ZC_MEMORIALDUNGEON_NOTIFY).
- Moved instance finalization out of map.c into instance.c
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14878 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/instance.h')
-rw-r--r-- | src/map/instance.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/map/instance.h b/src/map/instance.h index c663503f5..a4735113a 100644 --- a/src/map/instance.h +++ b/src/map/instance.h @@ -7,10 +7,12 @@ #define MAX_MAP_PER_INSTANCE 10 #define MAX_INSTANCE 500 -typedef enum instance_state { INSTANCE_FREE, INSTANCE_IDLE, INSTANCE_BUSSY } instance_state; +#define INSTANCE_NAME_LENGTH (60+1) + +typedef enum instance_state { INSTANCE_FREE, INSTANCE_IDLE, INSTANCE_BUSY } instance_state; struct s_instance { - char name[61]; // Instance Name - required for clif functions. + char name[INSTANCE_NAME_LENGTH]; // Instance Name - required for clif functions. instance_state state; short instance_id; int party_id; @@ -43,6 +45,7 @@ void instance_check_idle(int instance_id); void instance_check_kick(struct map_session_data *sd); void instance_set_timeout(int instance_id, unsigned int progress_timeout, unsigned int idle_timeout); -void do_init_instance(); +void do_final_instance(void); +void do_init_instance(void); #endif |