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.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/crawl-ref/source/losparam.cc b/crawl-ref/source/losparam.cc
index 0c8f41cead..3666081897 100644
--- a/crawl-ref/source/losparam.cc
+++ b/crawl-ref/source/losparam.cc
@@ -78,3 +78,11 @@ opacity_type opacity_monmove::operator()(const coord_def& p) const
else
return (OPC_CLEAR);
}
+
+opacity_type opacity_no_actor::operator()(const coord_def& p) const
+{
+ if (feat_is_solid(env.grid(p)) || actor_at(p))
+ return (OPC_OPAQUE);
+ else
+ return (OPC_CLEAR);
+}