summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/show.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-04 23:55:44 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-05 05:14:17 +0100
commit636cfe40f2758e48e2997d26e6e0b4a466b05517 (patch)
treee04b1b11908fa38e695412332da099220bb817eb /crawl-ref/source/show.cc
parenta47b16fb3e52b6e32dc2c144c331c77841751d60 (diff)
downloadcrawl-ref-636cfe40f2758e48e2997d26e6e0b4a466b05517.tar.gz
crawl-ref-636cfe40f2758e48e2997d26e6e0b4a466b05517.zip
Re-implement xray vision.
Diffstat (limited to 'crawl-ref/source/show.cc')
-rw-r--r--crawl-ref/source/show.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/show.cc b/crawl-ref/source/show.cc
index 04996fc7e6..de0152a9b9 100644
--- a/crawl-ref/source/show.cc
+++ b/crawl-ref/source/show.cc
@@ -505,7 +505,7 @@ void show_init(bool terrain_only)
return;
}
- for (radius_iterator ri(you.pos(), LOS_DEFAULT); ri; ++ri)
+ for (radius_iterator ri(you.pos(), you.xray_vision ? LOS_NONE : LOS_DEFAULT); ri; ++ri)
show_update_at(*ri, terrain_only);
}