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/spl-util.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/spl-util.cc')
-rw-r--r-- | crawl-ref/source/spl-util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc index 45de8b3160..9cf7dba648 100644 --- a/crawl-ref/source/spl-util.cc +++ b/crawl-ref/source/spl-util.cc @@ -1244,7 +1244,7 @@ bool spell_no_hostile_in_range(spell_type spell) case SPELL_HOLY_BREATH: { targetter_cloud tgt(&you, range); - for (radius_iterator ri(you.pos(), range, C_ROUND, you.get_los()); + for (radius_iterator ri(you.pos(), range, C_ROUND, LOS_NO_TRANS); ri; ++ri) { if (!tgt.valid_aim(*ri)) @@ -1317,7 +1317,7 @@ bool spell_no_hostile_in_range(spell_type spell) #ifdef DEBUG_DIAGNOSTICS beam.quiet_debug = true; #endif - for (radius_iterator ri(you.pos(), range, C_ROUND, you.get_los()); + for (radius_iterator ri(you.pos(), range, C_ROUND, LOS_DEFAULT); ri; ++ri) { tempbeam = beam; |