don't color teamchat in non-team modes

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2244 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
driAn
2008-07-29 19:25:57 +00:00
parent f246c82fcc
commit 67c647ee5d
+1 -1
View File
@@ -184,7 +184,7 @@ void trydisconnect()
void toserver(char *text)
{
bool toteam = text && text[0] == '%';
bool toteam = text && text[0] == '%' && m_teammode;
if(toteam) text++;
conoutf("%s:\f%d %s", colorname(player1), toteam ? 1 : 0, text);
addmsg(toteam ? SV_TEAMTEXT : SV_TEXT, "rs", text);