summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-clouds.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-10-18 21:24:58 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-10-18 21:28:08 +0200
commit8930be41e64ba63052918ab72683e56bdb38f30b (patch)
tree08b4bb68861ece3de6007e47536405ce698d44a3 /crawl-ref/source/spl-clouds.cc
parenta5d3c69d9522bc4b72ad8d3d0ab473ab1fcb418a (diff)
downloadcrawl-ref-8930be41e64ba63052918ab72683e56bdb38f30b.tar.gz
crawl-ref-8930be41e64ba63052918ab72683e56bdb38f30b.zip
Fix all uses of apply_area_cloud(), if the origin is solid.
Some cloud generators have the cloud flow from a wall or a statue. They use targetter_cloud which doesn't allow that, except they don't use the regular interface but read the targetter's internal data, which skips some validation.
Diffstat (limited to 'crawl-ref/source/spl-clouds.cc')
-rw-r--r--crawl-ref/source/spl-clouds.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/crawl-ref/source/spl-clouds.cc b/crawl-ref/source/spl-clouds.cc
index 171d0142f9..0dfaba3489 100644
--- a/crawl-ref/source/spl-clouds.cc
+++ b/crawl-ref/source/spl-clouds.cc
@@ -225,9 +225,6 @@ static int _make_a_normal_cloud(coord_def where, int pow, int spread_rate,
cloud_type ctype, const actor *agent, int colour,
string name, string tile, int excl_rad)
{
- if (cell_is_solid(where))
- return 0;
-
place_cloud(ctype, where,
(3 + random2(pow / 4) + random2(pow / 4) + random2(pow / 4)),
agent, spread_rate, colour, name, tile, excl_rad);