summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-01-13 10:38:54 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2009-01-13 10:38:54 +0000
commit9d1b39d3facc6d9f1268e036e7b23bd410c683ec (patch)
tree355fc27fb7d8431737b6d5fd2b62b3b00c7baf21 /src/map/mob.c
parent4ae49e2bfd82567f5747eaed81f02f515e556441 (diff)
downloadhercules-9d1b39d3facc6d9f1268e036e7b23bd410c683ec.tar.gz
hercules-9d1b39d3facc6d9f1268e036e7b23bd410c683ec.tar.bz2
hercules-9d1b39d3facc6d9f1268e036e7b23bd410c683ec.tar.xz
hercules-9d1b39d3facc6d9f1268e036e7b23bd410c683ec.zip
Mobs with nonzero spawn time can now be cached as well, saving some more cpu/memory (bugreport:1197).
Fixed dynamic mobs being unloaded without stopping their respawn timer. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13445 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index 8b522548f..91f5e4600 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -719,7 +719,7 @@ int mob_linksearch(struct block_list *bl,va_list ap)
/*==========================================
* mob spawn with delay (timer function)
*------------------------------------------*/
-static int mob_delayspawn(int tid, unsigned int tick, int id, intptr data)
+int mob_delayspawn(int tid, unsigned int tick, int id, intptr data)
{
struct block_list *bl = map_id2bl(id);
if (bl && bl->type == BL_MOB && bl->prev == NULL)