summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-clouds.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/spl-clouds.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/spl-clouds.cc')
-rw-r--r--crawl-ref/source/spl-clouds.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-clouds.cc b/crawl-ref/source/spl-clouds.cc
index 81b4061dd4..1e05cb44b6 100644
--- a/crawl-ref/source/spl-clouds.cc
+++ b/crawl-ref/source/spl-clouds.cc
@@ -315,9 +315,7 @@ spret_type cast_corpse_rot(bool fail)
void corpse_rot(actor* caster)
{
- for (radius_iterator ri(caster->pos(), 6, C_ROUND, caster->is_player() ? you.get_los_no_trans()
- : caster->get_los());
- ri; ++ri)
+ for (radius_iterator ri(caster->pos(), 6, C_ROUND, LOS_NO_TRANS); ri; ++ri)
{
if (!is_sanctuary(*ri) && env.cgrid(*ri) == EMPTY_CLOUD)
for (stack_iterator si(*ri); si; ++si)