summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acquire.cc
diff options
context:
space:
mode:
authorreaverb <reaverb.Crawl@gmail.com>2014-06-10 13:47:28 -0400
committerreaverb <reaverb.Crawl@gmail.com>2014-06-10 13:47:28 -0400
commit2cecdf434401f754e5e8ac3cb8a587116bb51302 (patch)
tree590132bde39d1ad18b295e80cbf2730fc0e22347 /crawl-ref/source/acquire.cc
parent7e81480cda18144ff185f5248639a072b654deff (diff)
downloadcrawl-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/acquire.cc')
-rw-r--r--crawl-ref/source/acquire.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/acquire.cc b/crawl-ref/source/acquire.cc
index 9d8a9c825f..e1385df57f 100644
--- a/crawl-ref/source/acquire.cc
+++ b/crawl-ref/source/acquire.cc
@@ -238,7 +238,7 @@ static int _acquirement_armour_subtype(bool divine, int & /*quantity*/)
3, ARM_STEAM_DRAGON_ARMOUR,
1, ARM_SWAMP_DRAGON_ARMOUR,
1, ARM_FIRE_DRAGON_ARMOUR,
- -1);
+ 0);
}
// Non-god acquirement not only has a much better chance, but
@@ -322,7 +322,7 @@ static int _acquirement_armour_subtype(bool divine, int & /*quantity*/)
5, ARM_STORM_DRAGON_ARMOUR,
5, ARM_GOLD_DRAGON_ARMOUR,
5, ARM_PEARL_DRAGON_ARMOUR,
- -1);
+ 0);
}
}