summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-mis.cc
diff options
context:
space:
mode:
authorDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-08 17:10:37 -0600
committerDavid Lawrence Ramsey <dolorous@users.sourceforge.net>2009-11-08 17:18:07 -0600
commita4be9baa7af0116b50c038d8efa00f216b1b41f9 (patch)
tree9214ac37095f439fdc8e3be5ab3047f0cdc24dd2 /crawl-ref/source/spl-mis.cc
parentedc0fa1655aade46898e9891e815c87c0e10a05f (diff)
downloadcrawl-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.cc4
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