summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/beam.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/beam.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/beam.cc')
-rw-r--r--crawl-ref/source/beam.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc
index ee202a29e6..e9d35fe8f4 100644
--- a/crawl-ref/source/beam.cc
+++ b/crawl-ref/source/beam.cc
@@ -544,7 +544,7 @@ static beam_type _chaos_beam_flavour(bolt* beam)
10, BEAM_PETRIFY,
10, BEAM_AGILITY,
2, BEAM_ENSNARE,
- 0);
+ -1);
}
while (beam->name == "arc of chaos"
&& (flavour == BEAM_BANISH
@@ -569,7 +569,7 @@ static beam_type _chaotic_reflection_flavour(bolt* beam)
10, BEAM_SLEEP,
10, BEAM_VULNERABILITY,
2, BEAM_ENSNARE,
- 0);
+ -1);
}
bool bolt::visible() const