summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-12 14:29:22 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2008-11-12 14:29:22 +0000
commit9f5521646824f9abed6ec32a2033354060229daf (patch)
treef47c87e50646144b28f6d783f049f89f46f2c359 /crawl-ref
parent079c7e85fc76d9ab979210fd57d23f055ecd0116 (diff)
downloadcrawl-ref-9f5521646824f9abed6ec32a2033354060229daf.tar.gz
crawl-ref-9f5521646824f9abed6ec32a2033354060229daf.zip
Fix debug build.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7437 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/religion.cc49
1 files changed, 25 insertions, 24 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 5c2b30dfca..432f04656b 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -2891,36 +2891,37 @@ bool did_god_conduct(conduct_type thing_done, int level, bool known,
gain_piety(piety_change);
else
_dock_piety(-piety_change, penance);
- }
#if DEBUG_DIAGNOSTICS
- if (retval)
- {
- static const char *conducts[] =
+ if (retval)
{
- "",
- "Necromancy", "Holy", "Unholy", "Attack Holy", "Attack Neutral",
- "Attack Friend", "Friend Died", "Stab", "Unchivalric Attack",
- "Poison", "Field Sacrifice", "Kill Living", "Kill Undead",
- "Kill Demon", "Kill Natural Evil", "Kill Chaotic",
- "Kill Wizard", "Kill Priest", "Kill Holy",
- "Undead Slave Kill Living", "Servant Kill Living",
- "Servant Kill Undead", "Servant Kill Demon",
- "Servant Kill Natural Evil", "Servant Kill Holy", "Spell Memorise",
- "Spell Cast", "Spell Practise", "Spell Nonutility", "Cards",
- "Stimulants", "Drink Blood", "Cannibalism", "Eat Meat",
- "Eat Souled Being", "Deliberate Mutation", "Cause Glowing",
- "Destroy Orcish Idol", "Create Life"
- };
+ static const char *conducts[] =
+ {
+ "",
+ "Necromancy", "Holy", "Unholy", "Attack Holy", "Attack Neutral",
+ "Attack Friend", "Friend Died", "Stab", "Unchivalric Attack",
+ "Poison", "Field Sacrifice", "Kill Living", "Kill Undead",
+ "Kill Demon", "Kill Natural Evil", "Kill Chaotic",
+ "Kill Wizard", "Kill Priest", "Kill Holy",
+ "Undead Slave Kill Living", "Servant Kill Living",
+ "Servant Kill Undead", "Servant Kill Demon",
+ "Servant Kill Natural Evil", "Servant Kill Holy",
+ "Spell Memorise", "Spell Cast", "Spell Practise",
+ "Spell Nonutility", "Cards", "Stimulants", "Drink Blood",
+ "Cannibalism", "Eat Meat", "Eat Souled Being",
+ "Deliberate Mutation", "Cause Glowing",
+ "Destroy Orcish Idol", "Create Life"
+ };
- COMPILE_CHECK(ARRAYSZ(conducts) == NUM_CONDUCTS, c1);
- mprf(MSGCH_DIAGNOSTICS,
- "conduct: %s; piety: %d (%+d); penance: %d (%+d)",
- conducts[thing_done],
- you.piety, piety_change, you.penance[you.religion], penance);
+ COMPILE_CHECK(ARRAYSZ(conducts) == NUM_CONDUCTS, c1);
+ mprf(MSGCH_DIAGNOSTICS,
+ "conduct: %s; piety: %d (%+d); penance: %d (%+d)",
+ conducts[thing_done],
+ you.piety, piety_change, you.penance[you.religion], penance);
- }
+ }
#endif
+ }
_do_god_revenge(thing_done);