summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-07-02 10:33:38 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-07-02 10:33:38 +0000
commit179b9771be97e87168b39799bdbf82767d46fc45 (patch)
tree5b4888426c7d4d9fb879ef1b894d4dc1b92ea6b4 /src/map/map.c
parent0361920446e9311979b5187abf123ba8e055d944 (diff)
downloadhercules-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/map.c')
-rw-r--r--src/map/map.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 0c60e94aa..b8edabfe6 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -3436,9 +3436,6 @@ void do_final(void)
for( sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); sd = (TBL_PC*)mapit_next(iter) )
map_quit(sd);
mapit_free(iter);
-
- for( i = 0; i < MAX_INSTANCE; i++ )
- instance_destroy(i);
id_db->foreach(id_db,cleanup_db_sub);
chrif_char_reset_offline();
@@ -3449,6 +3446,7 @@ void do_final(void)
do_final_chrif();
do_final_npc();
do_final_script();
+ do_final_instance();
do_final_itemdb();
do_final_storage();
do_final_guild();