diff options
author | reaverb <reaverb.Crawl@gmail.com> | 2014-06-10 02:10:52 -0400 |
---|---|---|
committer | reaverb <reaverb.Crawl@gmail.com> | 2014-06-10 12:58:57 -0400 |
commit | 7e81480cda18144ff185f5248639a072b654deff (patch) | |
tree | ee96229a36d8ab5c00b5032093771796717857e8 /crawl-ref/source/art-func.h | |
parent | 37dca8855d8c35d9f63bdafe54b967e7f831bb0b (diff) | |
download | crawl-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/art-func.h')
-rw-r--r-- | crawl-ref/source/art-func.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/art-func.h b/crawl-ref/source/art-func.h index 2c5a0a1fef..51532a2322 100644 --- a/crawl-ref/source/art-func.h +++ b/crawl-ref/source/art-func.h @@ -79,7 +79,7 @@ static bool _evoke_sceptre_of_asmodeus() 3, MONS_BALRUG, 2, MONS_HELLION, 1, MONS_BRIMSTONE_FIEND, - 0); + -1); mgen_data mg(mon, BEH_CHARMED, &you, 0, 0, you.pos(), MHITYOU, |