From 67c647ee5dd073d2ec1efbdb4dcf104d82233a2f Mon Sep 17 00:00:00 2001 From: driAn Date: Tue, 29 Jul 2008 19:25:57 +0000 Subject: [PATCH] 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 --- source/src/client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/client.cpp b/source/src/client.cpp index 0af31bf0..3a767e7a 100644 --- a/source/src/client.cpp +++ b/source/src/client.cpp @@ -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);