summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/message.cc5
-rw-r--r--crawl-ref/source/mpr.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/message.cc b/crawl-ref/source/message.cc
index 19dbfb84e3..b2f23a8253 100644
--- a/crawl-ref/source/message.cc
+++ b/crawl-ref/source/message.cc
@@ -164,6 +164,11 @@ static char god_message_altar_colour( god_type god )
return (YELLOW); // for stupid compilers
}
+msg_colour_type msg_colour(char col)
+{
+ return static_cast<msg_colour_type>(col);
+}
+
#ifdef USE_COLOUR_MESSAGES
// Returns a colour or MSGCOL_MUTED.
diff --git a/crawl-ref/source/mpr.h b/crawl-ref/source/mpr.h
index 43f3aa708d..389eda87d8 100644
--- a/crawl-ref/source/mpr.h
+++ b/crawl-ref/source/mpr.h
@@ -71,6 +71,8 @@ enum msg_colour_type
MSGCOL_PLAIN // same as plain channel
};
+msg_colour_type msg_colour(int colour);
+
void mpr(const char *inf, msg_channel_type channel = MSGCH_PLAIN, int param=0);
// 4.1-style mpr, currently named mprf for minimal disruption.