diff options
author | blackhole89 <blackhole89@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-14 11:01:13 +0000 |
---|---|---|
committer | blackhole89 <blackhole89@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-14 11:01:13 +0000 |
commit | ac214ba4fcd2ceec58eb4e97132f96758ffd06a3 (patch) | |
tree | 186ce5a9187d746917f133965cc056c232912683 /src/map/mob.c | |
parent | fc82a7ee77acb206755a0607a4a4765bb9c26566 (diff) | |
download | hercules-ac214ba4fcd2ceec58eb4e97132f96758ffd06a3.tar.gz hercules-ac214ba4fcd2ceec58eb4e97132f96758ffd06a3.tar.bz2 hercules-ac214ba4fcd2ceec58eb4e97132f96758ffd06a3.tar.xz hercules-ac214ba4fcd2ceec58eb4e97132f96758ffd06a3.zip |
data.x=x; data.y=y was not done at all except when using random coordinates. dfhsdfhsdfh
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6581 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mob.c')
-rw-r--r-- | src/map/mob.c | 7 |
1 files changed, 5 insertions, 2 deletions
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)
|