We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f65b8e2 commit dab638eCopy full SHA for dab638e
src/player/Player.cpp
@@ -40,8 +40,8 @@ std::map<std::string, std::string> colors = {
40
41
std::string ProcessColor(std::string str, int team = CS_TEAM_CT)
42
{
43
- str = replace(str, "{TEAMCOLOR}", team == CS_TEAM_CT ? "{LIGHTBLUE}" : "{GOLD}");
44
- str = replace(str, "{teamcolor}", team == CS_TEAM_CT ? "{lightblue}" : "{gold}");
+ str = replace(str, "{TEAMCOLOR}", team == CS_TEAM_CT ? "{LIGHTBLUE}" : (team == CS_TEAM_T ? "{GOLD}" : "{GREY}"));
+ str = replace(str, "{teamcolor}", team == CS_TEAM_CT ? "{lightblue}" : (team == CS_TEAM_T ? "{gold}" : "{grey}"));
45
for (auto it = colors.begin(); it != colors.end(); ++it)
46
47
str = replace(str, it->first, it->second);
0 commit comments