From df7176e9af165996a3cf2b8034c4949b90d5e07d Mon Sep 17 00:00:00 2001 From: ac_stef Date: Sun, 9 Aug 2009 18:08:55 +0000 Subject: [PATCH] local spect chat indicator git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4619 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 6ce5e2e5..7e3e8a54 100644 --- a/source/src/client.cpp +++ b/source/src/client.cpp @@ -220,6 +220,7 @@ void _toserver(char *text, int msg, int msgt) bool toteam = text && text[0] == '%' && (m_teammode || team_isspect(player1->team)); if(!toteam && text[0] == '%' && strlen(text) > 1) text++; // convert team-text to normal-text if no team-mode is active if(toteam) text++; + if(servstate.mastermode == MM_MATCH && servstate.matchteamsize && !team_isactive(player1->team) && !(player1->team == TEAM_SPECT && player1->clientrole == CR_ADMIN)) toteam = true; // spect chat if(msg == SV_TEXTME) conoutf("\f%d%s %s", toteam ? 1 : 0, colorname(player1), highlight(text)); else conoutf("%s:\f%d %s", colorname(player1), toteam ? 1 : 0, highlight(text)); addmsg(toteam ? msgt : msg, "rs", text);