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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user