From bc1869c1a3334676d5cc99df90f7f9b24426274d Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 20 Mar 2007 12:12:03 +0000 Subject: Added a funtion for formatted message history, and, while I was at it, moved some overlapping parts of base_mpr and formatted_mpr into separate functions. This makes them more readable and avoids code duplication. I'm uncertain as to whether translating every string in replay_messages into a formatted string (just in case) would be overkill - so for now that only happens for messages of MSGCH_TUTORIAL. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1071 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/message.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/message.h') diff --git a/crawl-ref/source/message.h b/crawl-ref/source/message.h index ec6e4258af..0d82a195d3 100644 --- a/crawl-ref/source/message.h +++ b/crawl-ref/source/message.h @@ -59,7 +59,10 @@ class formatted_string; void formatted_mpr(const formatted_string& fs, int channel = MSGCH_PLAIN, int param = 0); - + +void formatted_message_history(const std::string st, + int channel = MSGCH_PLAIN, int param = 0); + // 4.1-style mpr, currently named mprf for minimal disruption. void mprf( int channel, const char *format, ... ); void mprf( const char *format, ... ); -- cgit v1.2.3-54-g00ecf