escape color character in mapmsg

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3985 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2008-12-11 14:55:21 +00:00
parent e1a63bac24
commit 37effe576a
+7 -1
View File
@@ -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);