summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monplace.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/monplace.h')
-rw-r--r--crawl-ref/source/monplace.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/crawl-ref/source/monplace.h b/crawl-ref/source/monplace.h
index f0898245a2..bbba9f3c3f 100644
--- a/crawl-ref/source/monplace.h
+++ b/crawl-ref/source/monplace.h
@@ -216,19 +216,15 @@ struct mgen_data
}
static mgen_data hostile_at(monster_type what,
- const coord_def &where)
- {
- return mgen_data(what, BEH_HOSTILE, 0, where);
- }
-
- static mgen_data alert_hostile_at(monster_type what,
- const coord_def &where,
- int abj_deg = 0,
- unsigned flags = 0,
- god_type god = GOD_NO_GOD)
+ const coord_def &where,
+ int abj_deg = 0,
+ unsigned flags = 0,
+ bool alert = false,
+ god_type god = GOD_NO_GOD)
{
- return mgen_data(what, BEH_HOSTILE, abj_deg, where, MHITYOU, flags,
- god);
+ return mgen_data(what, BEH_HOSTILE, abj_deg, where,
+ alert ? MHITYOU : MHITNOT,
+ flags, god);
}
};