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 f24acf4551..132c2005f2 100644
--- a/crawl-ref/source/losparam.cc
+++ b/crawl-ref/source/losparam.cc
@@ -30,6 +30,14 @@ opacity_type opacity_default::operator()(const coord_def& p) const
return OPC_CLEAR;
}
+opacity_type opacity_fullyopaque::operator()(const coord_def& p) const
+{
+ if (grid_is_opaque(env.grid(p)))
+ return OPC_OPAQUE;
+ else
+ return OPC_CLEAR;
+}
+
// Make anything solid block in addition to normal LOS.
// XXX: Are trees, bushes solid?
opacity_type opacity_solid::operator()(const coord_def& p) const