summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/evoke.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2013-10-31 23:31:40 -0400
committerNeil Moore <neil@s-z.org>2013-10-31 23:44:32 -0400
commit2cbfbd65a65a0b34717c50a3dd7629cc235ba24b (patch)
treedf3528d133e92b2a6adb4129128b28c8f13c6862 /crawl-ref/source/evoke.cc
parent60ee58ef75524083314da920c03413420b6fbb22 (diff)
downloadcrawl-ref-2cbfbd65a65a0b34717c50a3dd7629cc235ba24b.tar.gz
crawl-ref-2cbfbd65a65a0b34717c50a3dd7629cc235ba24b.zip
Fix a disc of storms rain-placement crash.
Diffstat (limited to 'crawl-ref/source/evoke.cc')
-rw-r--r--crawl-ref/source/evoke.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/evoke.cc b/crawl-ref/source/evoke.cc
index 501c6bae03..c61f9eee62 100644
--- a/crawl-ref/source/evoke.cc
+++ b/crawl-ref/source/evoke.cc
@@ -440,12 +440,14 @@ bool disc_of_storms(bool drac_breath)
{
for (radius_iterator ri(you.pos(), LOS_RADIUS, false); ri; ++ri)
{
- if (!in_bounds(*ri) || grd(*ri) < DNGN_MAXWALL)
+ if (!in_bounds(*ri) || cell_is_solid(*ri))
continue;
if (one_chance_in(60 - you.skill(SK_EVOCATIONS)))
+ {
place_cloud(CLOUD_RAIN, *ri,
random2(you.skill(SK_EVOCATIONS)), &you);
+ }
}
}
}