summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/losparam.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/losparam.cc')
-rw-r--r--crawl-ref/source/losparam.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/losparam.cc b/crawl-ref/source/losparam.cc
index 4f1f100244..da30165ed1 100644
--- a/crawl-ref/source/losparam.cc
+++ b/crawl-ref/source/losparam.cc
@@ -56,6 +56,15 @@ opacity_type opacity_solid::operator()(const coord_def& p) const
return OPC_CLEAR;
}
+opacity_type opacity_monmove::operator()(const coord_def& p) const
+{
+ dungeon_feature_type feat = env.grid(p);
+ if (feat < DNGN_MINMOVE || !mon.can_pass_through_feat(feat))
+ return (OPC_OPAQUE);
+ else
+ return (OPC_CLEAR);
+}
+
// LOS bounded by fixed presquared radius.
bool bounds_radius_sq::operator()(const coord_def& p) const
{