summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/xom.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-20 06:01:05 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-20 06:01:05 +0000
commitc8057b4430d1a552899846255def3e5d627f2472 (patch)
treeae4590cd6c4f436489bd3a61439dc82dac2dac58 /crawl-ref/source/xom.cc
parent09df3fcb005f1164e5e0a813cd9dceae4f75dd93 (diff)
downloadcrawl-ref-c8057b4430d1a552899846255def3e5d627f2472.tar.gz
crawl-ref-c8057b4430d1a552899846255def3e5d627f2472.zip
Only display Xom's death message for Xom worshippers.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9521 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/xom.cc')
-rw-r--r--crawl-ref/source/xom.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc
index 39bd660f72..9f86c9368a 100644
--- a/crawl-ref/source/xom.cc
+++ b/crawl-ref/source/xom.cc
@@ -2182,5 +2182,6 @@ void xom_check_destroyed_item(const item_def& item, int cause)
void xom_death_message()
{
- god_speaks(GOD_XOM, _get_xom_speech("laughter").c_str());
+ if (you.religion == GOD_XOM)
+ god_speaks(GOD_XOM, _get_xom_speech("laughter").c_str());
}