Ver código fonte

Fixed spawned mob count not being counted properly, causing yet more respawn problems.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12364 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage 17 anos atrás
pai
commit
675eab189e
2 arquivos alterados com 1 adições e 2 exclusões
  1. 0 2
      src/map/mob.c
  2. 1 0
      src/map/npc.c

+ 0 - 2
src/map/mob.c

@@ -903,8 +903,6 @@ int mob_spawn (struct mob_data *md)
 			add_timer(tick+5000,mob_delayspawn,md->bl.id,0);
 			return 1;
 		}
-
-		md->spawn->active++;
 	}
 
 	memset(&md->state, 0, sizeof(md->state));

+ 1 - 0
src/map/npc.c

@@ -2186,6 +2186,7 @@ void npc_parse_mob2(struct spawn_data* mob)
 	{
 		struct mob_data* md = mob_spawn_dataset(mob);
 		md->spawn = mob;
+		md->spawn->active++;
 		mob_spawn(md);
 	}
 }