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.
This commit is contained in:
aurhat
2015-08-17 22:07:06 +02:00
parent 3a4edff826
commit cf2a8018ff
+1 -1
View File
@@ -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;