diff options
-rw-r--r-- | Changelog-Trunk.txt | 1 | ||||
-rw-r--r-- | src/map/mob.c | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 30eed9493..b4e712502 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -4,6 +4,7 @@ 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/05/12
+ * Fixed mob_once_spawn not working for non-random coordinates. [blackhole89]
* Reverted again the change that stuns the caster on Ske, Ska, Swoo when
the target is a nonplayer (rather than always) [Skotlex]
* Modified mob_spawn_once so that coordinates -1,-1 are "random around the
diff --git a/src/map/mob.c b/src/map/mob.c index 708bb4a47..4069a9733 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -304,9 +304,12 @@ int mob_once_spawn (struct map_session_data *sd, char *mapname, for (count = 0; count < amount; count++) {
if (rand_flag) { //Get a random cell for this mob.
map_search_freecell(NULL, m, &x, &y, -1, -1, 1);
- data.x = x;
- data.y = y;
}
+
+ // This should ALWAYS be done. [blackhole89]
+ data.x = x;
+ data.y = y;
+
md =mob_spawn_dataset (&data);
if (class_ < 0 && battle_config.dead_branch_active)
|