diff options
author | reaverb <reaverb.Crawl@gmail.com> | 2014-06-10 13:47:28 -0400 |
---|---|---|
committer | reaverb <reaverb.Crawl@gmail.com> | 2014-06-10 13:47:28 -0400 |
commit | 2cecdf434401f754e5e8ac3cb8a587116bb51302 (patch) | |
tree | 590132bde39d1ad18b295e80cbf2730fc0e22347 /crawl-ref/source/beam.cc | |
parent | 7e81480cda18144ff185f5248639a072b654deff (diff) | |
download | crawl-ref-2cecdf434401f754e5e8ac3cb8a587116bb51302.tar.gz crawl-ref-2cecdf434401f754e5e8ac3cb8a587116bb51302.zip |
Revert "Make random_choose_weighted() end on -1 weight"
This reverts commit 7e81480cda18144ff185f5248639a072b654deff.
Turns out I missed some calls to random_choose_weighted(), this change
might not even be worth doing.
Diffstat (limited to 'crawl-ref/source/beam.cc')
-rw-r--r-- | crawl-ref/source/beam.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/beam.cc b/crawl-ref/source/beam.cc index e9d35fe8f4..ee202a29e6 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, - -1); + 0); } 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, - -1); + 0); } bool bolt::visible() const |