Skip to content

Commit dab638e

Browse files
committed
fix(chat): Spectator Color
1 parent f65b8e2 commit dab638e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/player/Player.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ std::map<std::string, std::string> colors = {
4040

4141
std::string ProcessColor(std::string str, int team = CS_TEAM_CT)
4242
{
43-
str = replace(str, "{TEAMCOLOR}", team == CS_TEAM_CT ? "{LIGHTBLUE}" : "{GOLD}");
44-
str = replace(str, "{teamcolor}", team == CS_TEAM_CT ? "{lightblue}" : "{gold}");
43+
str = replace(str, "{TEAMCOLOR}", team == CS_TEAM_CT ? "{LIGHTBLUE}" : (team == CS_TEAM_T ? "{GOLD}" : "{GREY}"));
44+
str = replace(str, "{teamcolor}", team == CS_TEAM_CT ? "{lightblue}" : (team == CS_TEAM_T ? "{gold}" : "{grey}"));
4545
for (auto it = colors.begin(); it != colors.end(); ++it)
4646
{
4747
str = replace(str, it->first, it->second);

0 commit comments

Comments
 (0)