Explorar o código

- Fixed the map_search_freecell error which was making mobs fail to respawn.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8169 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex %!s(int64=19) %!d(string=hai) anos
pai
achega
b577d98d88
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      src/map/mob.c

+ 2 - 0
Changelog-Trunk.txt

@@ -4,6 +4,8 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
 2006/08/07
+	* Fixed the map_search_freecell error which was making mobs fail to
+	  respawn. [Skotlex]
 	* Added in Lupus's suggestion of not making multi-slot headgears set all
 	  slot view-ids, which supposedly causes the client to re-draw the headgear
 	  multiple times on characters. [Skotlex]

+ 1 - 1
src/map/mob.c

@@ -638,7 +638,7 @@ int mob_spawn (struct mob_data *md)
 
 		if ((md->bl.x == 0 && md->bl.y == 0) || md->spawn->xs || md->spawn->ys)
 		{	//Monster can be spawned on an area.
-			if (!map_search_freecell(NULL, -1,
+			if (!map_search_freecell(&md->bl, -1,
 			  	&md->bl.x, &md->bl.y, md->spawn->xs, md->spawn->ys,
 			  	battle_config.no_spawn_on_player?4:0)) {
 				// retry again later