mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fi: uid background is red in dm
This commit is contained in:
parent
d1bf48f42c
commit
d868225f1d
|
@ -49,9 +49,14 @@ void CNamePlates::RenderNameplate(
|
|||
}
|
||||
|
||||
const vec4 IdTextColor(0.1f, 0.1f, 0.1f, a);
|
||||
vec4 BgIdColor(1.0f, 0.5f, 0.5f, a * 0.5f);
|
||||
if(m_pClient->m_aClients[ClientID].m_Team == TEAM_BLUE)
|
||||
vec4 BgIdColor(1.0f, 1.0f, 1.0f, a * 0.5f);
|
||||
if(g_Config.m_ClNameplatesTeamcolors && m_pClient->m_GameInfo.m_GameFlags&GAMEFLAG_TEAMS)
|
||||
{
|
||||
if(m_pClient->m_aClients[ClientID].m_Team == TEAM_RED)
|
||||
BgIdColor = vec4(1.0f, 0.5f, 0.5f, a * 0.5f);
|
||||
else if(m_pClient->m_aClients[ClientID].m_Team == TEAM_BLUE)
|
||||
BgIdColor = vec4(0.7f, 0.7f, 1.0f, a * 0.5f);
|
||||
}
|
||||
|
||||
if(a > 0.001f)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue