From cf2a8018ff4c0ebcecbbb064f215e46b884a0402 Mon Sep 17 00:00:00 2001 From: aurhat Date: Mon, 17 Aug 2015 22:06:44 +0200 Subject: [PATCH] Fix colour of team messages in non-team mode When spectator will send in non-team mode a message in team chat, then other spectators will see it in blue colour - earlier was wrongly green, like for normal chat. --- source/src/clients2c.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/clients2c.cpp b/source/src/clients2c.cpp index d4f8c376..97426c3e 100644 --- a/source/src/clients2c.cpp +++ b/source/src/clients2c.cpp @@ -482,7 +482,7 @@ void parsemessages(int cn, playerent *d, ucharbuf &p, bool demo = false) if(d->ignored) clientlogf("ignored: %s%s %s", colorname(d), type == SV_TEAMTEXT ? ":" : "", text); else { - if(m_teammode) conoutf(type == SV_TEAMTEXTME ? "\f1%s %s" : "%s:\f1 %s", colorname(d), highlight(text)); + if(m_teammode || team_isspect(player1->team)) conoutf(type == SV_TEAMTEXTME ? "\f1%s %s" : "%s:\f1 %s", colorname(d), highlight(text)); else conoutf(type == SV_TEAMTEXTME ? "\f0%s %s" : "%s:\f0 %s", colorname(d), highlight(text)); } break;