summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-01 09:16:00 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-01 09:16:00 +0000
commit94e3fadcc3e1c6931409d6a4b7e1cb714ec94076 (patch)
tree5fdddd94e9f9fbf6458e5fe8d2d35880b6b98b18
parentf090b4c11c5dbfe108933d6a6507cd9c3e697f4e (diff)
downloadcrawl-ref-94e3fadcc3e1c6931409d6a4b7e1cb714ec94076.tar.gz
crawl-ref-94e3fadcc3e1c6931409d6a4b7e1cb714ec94076.zip
If mpr() is called with MSGCH_GOD and param == 0 then change param to
you.religion, like the way mprf() does it. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6283 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/message.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/message.cc b/crawl-ref/source/message.cc
index eb82cafe38..fc9b8f2df1 100644
--- a/crawl-ref/source/message.cc
+++ b/crawl-ref/source/message.cc
@@ -412,6 +412,9 @@ void mpr(const char *inf, msg_channel_type channel, int param)
return;
}
+ if (channel == MSGCH_GOD && param == 0)
+ param = you.religion;
+
std::string help = inf;
if (help.find("</") != std::string::npos)
{