diff options
author | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-08 17:10:37 -0600 |
---|---|---|
committer | David Lawrence Ramsey <dolorous@users.sourceforge.net> | 2009-11-08 17:18:07 -0600 |
commit | a4be9baa7af0116b50c038d8efa00f216b1b41f9 (patch) | |
tree | 9214ac37095f439fdc8e3be5ab3047f0cdc24dd2 /crawl-ref/source/spl-mis.cc | |
parent | edc0fa1655aade46898e9891e815c87c0e10a05f (diff) | |
download | crawl-ref-a4be9baa7af0116b50c038d8efa00f216b1b41f9.tar.gz crawl-ref-a4be9baa7af0116b50c038d8efa00f216b1b41f9.zip |
Reorder the parameters in mgen_data::hostile_at() to be closer to the
order used in mgen_data(), and allow the former to specify the base
monster, as the latter does.
Diffstat (limited to 'crawl-ref/source/spl-mis.cc')
-rw-r--r-- | crawl-ref/source/spl-mis.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-mis.cc b/crawl-ref/source/spl-mis.cc index b7022461ec..96339da003 100644 --- a/crawl-ref/source/spl-mis.cc +++ b/crawl-ref/source/spl-mis.cc @@ -706,8 +706,8 @@ bool MiscastEffect::_create_monster(monster_type what, int abj_deg, (crawl_state.is_god_acting()) ? crawl_state.which_god_acting() : GOD_NO_GOD; - mgen_data data = mgen_data::hostile_at(what, target->pos(), - abj_deg, 0, alert, god); + mgen_data data = mgen_data::hostile_at(what, alert, + abj_deg, 0, target->pos(), 0, god); // hostile_at() assumes the monster is hostile to the player, // but should be hostile to the target monster unless the miscast |