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/view.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/view.cc')
-rw-r--r-- | crawl-ref/source/view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index 708173a97b..f5613a7e74 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -866,7 +866,7 @@ static void player_view_update() { vector<coord_def> update_excludes; bool need_update = false; - for (radius_iterator ri(you.get_los()); ri; ++ri) + for (radius_iterator ri(you.pos(), LOS_DEFAULT); ri; ++ri) { int flags = player_view_update_at(*ri); if (flags & UF_AFFECT_EXCLUDES) |