diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-11-03 23:32:37 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-11-05 05:14:16 +0100 |
commit | bfccd69dc6f11e2a37f96a5b2b8cb07f956404a9 (patch) | |
tree | 9dc5dadfc054e90148a0d33142aad9332521a4b2 /crawl-ref/source/travel.cc | |
parent | 5fd963b57e3ae748b0644243424a569f67560d81 (diff) | |
download | crawl-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.cc | 2 |
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); |