From 37effe576a92ec607a5bfde823e96e306f4cf07e Mon Sep 17 00:00:00 2001 From: ac_stef Date: Thu, 11 Dec 2008 14:55:21 +0000 Subject: [PATCH] escape color character in mapmsg git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3985 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/console.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/src/console.cpp b/source/src/console.cpp index eed06fcc..556f085a 100644 --- a/source/src/console.cpp +++ b/source/src/console.cpp @@ -209,7 +209,13 @@ void inputcommand(char *init, char *action, char *prompt) if(prompt[0]) cmdprompt = newstring(prompt); } -void mapmsg(char *s) { s_strncpy(hdr.maptitle, s, 128); } +void mapmsg(char *s) +{ + string text; + filterrichtext(text, s); + filterservdesc(text, text); + s_strncpy(hdr.maptitle, text, 128); +} COMMAND(saycommand, ARG_CONC); COMMAND(inputcommand, ARG_3STR);