summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index 4cbd7f586e..46cb73c139 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -2877,8 +2877,9 @@ void losight(env_show_grid &sh,
dungeon_feature_type dfeat = grid_appearance(gr, real);
// if this cell is opaque...
+ // ... or something you can see but not walk through ...
if (grid_is_opaque(dfeat)
- || clear_walls_block && grid_is_wall(dfeat))
+ || clear_walls_block && dfeat < DNGN_MINMOVE)
{
// then block the appropriate rays
for (unsigned int i = 0; i < num_words; ++i)