summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.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/view.cc
parenta47b16fb3e52b6e32dc2c144c331c77841751d60 (diff)
downloadcrawl-ref-636cfe40f2758e48e2997d26e6e0b4a466b05517.tar.gz
crawl-ref-636cfe40f2758e48e2997d26e6e0b4a466b05517.zip
Re-implement xray vision.
Diffstat (limited to 'crawl-ref/source/view.cc')
-rw-r--r--crawl-ref/source/view.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc
index 7eedc088c5..2e4a654cde 100644
--- a/crawl-ref/source/view.cc
+++ b/crawl-ref/source/view.cc
@@ -875,7 +875,7 @@ static void player_view_update()
vector<coord_def> update_excludes;
bool need_update = false;
- 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)
{
int flags = player_view_update_at(*ri);
if (flags & UF_AFFECT_EXCLUDES)