summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-15 09:01:40 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-15 09:01:40 +0000
commitbf7c206ba9e02368e1c23b47ca06ea7be9d70d29 (patch)
tree34cafadd4e1e1225ccb52eb8d3e84844f883d5b5 /crawl-ref/source/describe.cc
parentfd53b2e9dab9038ed34a419a1ee27c5314e13ddd (diff)
downloadcrawl-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/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index 9f9d44e634..4dd81fc3cf 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -1646,6 +1646,7 @@ std::string get_item_description( const item_def &item, bool verbose,
break;
case OBJ_POTIONS:
+#ifdef DEBUG_BLOOD_POTIONS
// list content of timer vector for blood potions
if (item.sub_type == POT_BLOOD
|| item.sub_type == POT_BLOOD_COAGULATED)
@@ -1662,6 +1663,7 @@ std::string get_item_description( const item_def &item, bool verbose,
for (int i = 0; i < timer.size(); i++)
description << (timer[i].get_long()) << " ";
}
+#endif
break;
case OBJ_SCROLLS: