summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-11-03 23:32:37 +0100
committerAdam Borowski <kilobyte@angband.pl>2013-11-05 05:14:16 +0100
commitbfccd69dc6f11e2a37f96a5b2b8cb07f956404a9 (patch)
tree9dc5dadfc054e90148a0d33142aad9332521a4b2 /crawl-ref/source/travel.cc
parent5fd963b57e3ae748b0644243424a569f67560d81 (diff)
downloadcrawl-ref-bfccd69dc6f11e2a37f96a5b2b8cb07f956404a9.tar.gz
crawl-ref-bfccd69dc6f11e2a37f96a5b2b8cb07f956404a9.zip
Get rid of all external uses of get_los().
This also fixes a bunch of "act through glass" or "doesn't obey nightstalker/ lantern of shadows" bugs.
Diffstat (limited to 'crawl-ref/source/travel.cc')
-rw-r--r--crawl-ref/source/travel.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/travel.cc b/crawl-ref/source/travel.cc
index 4b3f599553..0fa2a58f2a 100644
--- a/crawl-ref/source/travel.cc
+++ b/crawl-ref/source/travel.cc
@@ -4582,7 +4582,7 @@ bool check_for_interesting_features()
// discovered and contain an item, or have an interesting dungeon
// feature, stop exploring.
explore_discoveries discoveries;
- for (radius_iterator ri(you.get_los()); ri; ++ri)
+ for (radius_iterator ri(you.pos(), LOS_DEFAULT); ri; ++ri)
{
const coord_def p(*ri);