summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ng-init.cc
diff options
context:
space:
mode:
authorMatthew Cline <zelgadis@sourceforge.net>2009-11-12 03:18:07 -0800
committerMatthew Cline <zelgadis@sourceforge.net>2009-11-12 03:18:07 -0800
commitce5dd6cec328845983bd62f5ffc32beb6c292ab9 (patch)
treeb9d3f3af10051ca178141a343947b05272425ada /crawl-ref/source/ng-init.cc
parent1ad42555a20a376ca476a14c44ad80ddefa4163e (diff)
downloadcrawl-ref-ce5dd6cec328845983bd62f5ffc32beb6c292ab9.tar.gz
crawl-ref-ce5dd6cec328845983bd62f5ffc32beb6c292ab9.zip
New macro DEBUG_TEMPLES
The macro DEBUG_TEMPLES can be defined to get diagnostics messages regarding the main temple and overflow temples.
Diffstat (limited to 'crawl-ref/source/ng-init.cc')
-rw-r--r--crawl-ref/source/ng-init.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/ng-init.cc b/crawl-ref/source/ng-init.cc
index 9f1d1596b4..588d42b505 100644
--- a/crawl-ref/source/ng-init.cc
+++ b/crawl-ref/source/ng-init.cc
@@ -18,6 +18,10 @@
#include "religion.h"
#include "store.h"
+#ifdef DEBUG_DIAGNOSTICS
+#define DEBUG_TEMPLES 1
+#endif
+
static unsigned char _random_potion_description()
{
int desc, nature, colour;
@@ -129,7 +133,7 @@ void initialise_temples()
main_temple->name.c_str());
}
-#ifdef DEBUG_DIAGNOSITCS
+#ifdef DEBUG_TEMPLES
mprf(MSGCH_DIAGNOSTICS, "Chose main temple %s, size %lu",
main_temple->name.c_str(), main_temple_size);
#endif
@@ -149,6 +153,10 @@ void initialise_temples()
god_list.pop_back();
}
+#ifdef DEBUG_TEMPLES
+ mprf(MSGCH_DIAGNOSTICS, "%lu overflow altars", overflow_gods.size());
+#endif
+
CrawlVector &temple_gods
= you.props[TEMPLE_GODS_KEY].new_vector(SV_BYTE);