diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-03-22 11:57:57 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-03-22 11:57:57 +0000 |
commit | 2ad44c42144601d49d3ba919a5c097aeef25109a (patch) | |
tree | 758abbda8a8fcf682a2b665fd37fcdfbed3b1fad /src/map | |
parent | 9ece3be5cc2869d4d9b62244ef1cc5bbe1f52e17 (diff) | |
download | hercules-2ad44c42144601d49d3ba919a5c097aeef25109a.tar.gz hercules-2ad44c42144601d49d3ba919a5c097aeef25109a.tar.bz2 hercules-2ad44c42144601d49d3ba919a5c097aeef25109a.tar.xz hercules-2ad44c42144601d49d3ba919a5c097aeef25109a.zip |
Mobs with no respawn information which don't have a master will not get unloaded by the dynamic mobs system.
This prevents script-spawned mobs (bio MVPs, Emperium/Guardians, ...) and dead-branched mobs from disappearing (bugreport:1246).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12424 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/map.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/map.c b/src/map/map.c index 06b39129e..83f6b855e 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -1981,6 +1981,9 @@ int map_removemobs_sub(struct block_list *bl, va_list ap) nullpo_retr(0, md); //When not to remove: + //Mob doesn't respawn and is not a slave + if( !md->spawn && !md->master_id ) + return 0; //Mob respawn data is not in cache if( md->spawn && !md->spawn->state.dynamic ) return 0; |