summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-04-07 15:14:35 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-04-07 15:14:35 +0000
commita6cd6538e4271ea08dc86803e8b7e8c8f235960b (patch)
tree883d4c1ae282fb67e1720f81c20f564499298ff4 /src/map/map.c
parentbe2871f1e62bbb88c7fd413456d1b9c39d1f2fd9 (diff)
downloadhercules-a6cd6538e4271ea08dc86803e8b7e8c8f235960b.tar.gz
hercules-a6cd6538e4271ea08dc86803e8b7e8c8f235960b.tar.bz2
hercules-a6cd6538e4271ea08dc86803e8b7e8c8f235960b.tar.xz
hercules-a6cd6538e4271ea08dc86803e8b7e8c8f235960b.zip
* Readded @disablenpc
* Fixed @reloadscript not removing old NPC's and monsters first * Some changes in mob and NPC unloading * Changed the original @disablenpc to @hidenpc git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@1429 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 14665fd54..386b38954 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -3131,10 +3131,10 @@ int cleanup_sub(struct block_list *bl, va_list ap) {
map_quit((struct map_session_data *) bl);
break;
case BL_NPC:
- npc_delete((struct npc_data *)bl);
+ npc_unload((struct npc_data *)bl);
break;
case BL_MOB:
- mob_delete((struct mob_data *)bl);
+ mob_unload((struct mob_data *)bl);
break;
case BL_PET:
pet_remove_map((struct map_session_data *)bl);