diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-15 09:01:40 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-15 09:01:40 +0000 |
commit | bf7c206ba9e02368e1c23b47ca06ea7be9d70d29 (patch) | |
tree | 34cafadd4e1e1225ccb52eb8d3e84844f883d5b5 /crawl-ref/source/makeitem.cc | |
parent | fd53b2e9dab9038ed34a419a1ee27c5314e13ddd (diff) | |
download | crawl-ref-bf7c206ba9e02368e1c23b47ca06ea7be9d70d29.tar.gz crawl-ref-bf7c206ba9e02368e1c23b47ca06ea7be9d70d29.zip |
Fix a wizmode bug where placing an altar to your current god would
attempt you to "re-join" your own religion and subsequently crash.
Also, reintroduce debugging check for blood potion descriptions that I'd
accidentally removed, and rename static methods in religion.cc.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4238 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r-- | crawl-ref/source/makeitem.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc index fb51386cf2..ee14f188c7 100644 --- a/crawl-ref/source/makeitem.cc +++ b/crawl-ref/source/makeitem.cc @@ -2930,7 +2930,7 @@ static void give_potion(monsters *mon, int level) mitm[thing_created].flags = 0; give_monster_item(mon, thing_created); } - if (mons_is_unique( mon->type ) && one_chance_in(3)) + else if (mons_is_unique( mon->type ) && one_chance_in(3)) { const int thing_created = items(0, OBJ_POTIONS, OBJ_RANDOM, true, level, 0); |