summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/target.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-02-25 21:32:07 -0700
committerSteve Melenchuk <smelenchuk@gmail.com>2014-02-25 21:32:57 -0700
commit5342ddda93ea82e0915bb8fe3c11a17db05a175a (patch)
tree1c0797b4634fbb54774a00d3a06623db813ef0b3 /crawl-ref/source/target.cc
parent293f72c3f6535bea28bc109749a17172811c7e53 (diff)
downloadcrawl-ref-5342ddda93ea82e0915bb8fe3c11a17db05a175a.tar.gz
crawl-ref-5342ddda93ea82e0915bb8fe3c11a17db05a175a.zip
Don't limit cloud spells to caster's LOS.
Discussion on ##crawl suggests we prefer to treat out of sight tiles as empty space and dissipate clouds quickly out of LOS. This partially reverts commit 8ebc43ee9846018f1828a0c757a8a9094db08dc2.
Diffstat (limited to 'crawl-ref/source/target.cc')
-rw-r--r--crawl-ref/source/target.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/crawl-ref/source/target.cc b/crawl-ref/source/target.cc
index de34fc33e6..4eeda0d8e9 100644
--- a/crawl-ref/source/target.cc
+++ b/crawl-ref/source/target.cc
@@ -570,9 +570,6 @@ bool targetter_cloud::set_aim(coord_def a)
for (adjacent_iterator ai(c); ai; ++ai)
if (_cloudable(*ai) && !seen.count(*ai))
{
- if (agent && !cell_see_cell(*ai, agent->pos(), LOS_NO_TRANS))
- continue;
-
unsigned int d2 = d1 + ((*ai - c).abs() == 1 ? 5 : 7);
if (d2 >= queue.size())
queue.resize(d2 + 1);