summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/cloud.cc
diff options
context:
space:
mode:
authorreaverb <reaverb.Crawl@gmail.com>2014-06-10 02:10:52 -0400
committerreaverb <reaverb.Crawl@gmail.com>2014-06-10 12:58:57 -0400
commit7e81480cda18144ff185f5248639a072b654deff (patch)
treeee96229a36d8ab5c00b5032093771796717857e8 /crawl-ref/source/cloud.cc
parent37dca8855d8c35d9f63bdafe54b967e7f831bb0b (diff)
downloadcrawl-ref-7e81480cda18144ff185f5248639a072b654deff.tar.gz
crawl-ref-7e81480cda18144ff185f5248639a072b654deff.zip
Make random_choose_weighted() end on -1 weight
For consistency with random_choose().
Diffstat (limited to 'crawl-ref/source/cloud.cc')
-rw-r--r--crawl-ref/source/cloud.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/cloud.cc b/crawl-ref/source/cloud.cc
index ca824590ab..c94c0d9675 100644
--- a/crawl-ref/source/cloud.cc
+++ b/crawl-ref/source/cloud.cc
@@ -326,7 +326,7 @@ static void _handle_ghostly_flame(const cloud_struct& cloud)
3, MONS_SNAPPING_TURTLE,
2, MONS_ALLIGATOR_SNAPPING_TURTLE,
100, RANDOM_MONSTER,
- 0);
+ -1);
if (basetype == RANDOM_MONSTER && one_chance_in(4))
{