data.x=x; data.y=y was not done at all except when using random coordinates. dfhsdfhsdfh
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6581 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
6bd440fdb8
commit
96bf1fd79e
@ -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.
|
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
||||||
|
|
||||||
2006/05/12
|
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
|
* Reverted again the change that stuns the caster on Ske, Ska, Swoo when
|
||||||
the target is a nonplayer (rather than always) [Skotlex]
|
the target is a nonplayer (rather than always) [Skotlex]
|
||||||
* Modified mob_spawn_once so that coordinates -1,-1 are "random around the
|
* Modified mob_spawn_once so that coordinates -1,-1 are "random around the
|
||||||
|
@ -304,9 +304,12 @@ int mob_once_spawn (struct map_session_data *sd, char *mapname,
|
|||||||
for (count = 0; count < amount; count++) {
|
for (count = 0; count < amount; count++) {
|
||||||
if (rand_flag) { //Get a random cell for this mob.
|
if (rand_flag) { //Get a random cell for this mob.
|
||||||
map_search_freecell(NULL, m, &x, &y, -1, -1, 1);
|
map_search_freecell(NULL, m, &x, &y, -1, -1, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
// This should ALWAYS be done. [blackhole89]
|
||||||
data.x = x;
|
data.x = x;
|
||||||
data.y = y;
|
data.y = y;
|
||||||
}
|
|
||||||
md =mob_spawn_dataset (&data);
|
md =mob_spawn_dataset (&data);
|
||||||
|
|
||||||
if (class_ < 0 && battle_config.dead_branch_active)
|
if (class_ < 0 && battle_config.dead_branch_active)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user