From 41f4837b3eaecf4e8e85b88f2769fe77ec9aa00a Mon Sep 17 00:00:00 2001 From: driAn Date: Tue, 29 Jul 2008 21:27:09 +0000 Subject: [PATCH] voicecom fixes git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2254 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/src/client.cpp b/source/src/client.cpp index 3a767e7a..eff8b5e5 100644 --- a/source/src/client.cpp +++ b/source/src/client.cpp @@ -185,6 +185,7 @@ void trydisconnect() void toserver(char *text) { bool toteam = text && text[0] == '%' && m_teammode; + if(!toteam && text[0] == '%' && strlen(text) > 1) text++; // convert team-text to normal-text if no team-mode is active if(toteam) text++; conoutf("%s:\f%d %s", colorname(player1), toteam ? 1 : 0, text); addmsg(toteam ? SV_TEAMTEXT : SV_TEXT, "rs", text);