mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Remove cl_chat_teamcolors
check from info messages.
This commit is contained in:
parent
ba3a6b4262
commit
da02be4a9f
|
@ -280,7 +280,7 @@ void CInfoMessages::OnRaceFinishMessage(const CNetMsg_Sv_RaceFinish *pMsg)
|
||||||
void CInfoMessages::RenderKillMsg(const CInfoMsg &InfoMsg, float x, float y)
|
void CInfoMessages::RenderKillMsg(const CInfoMsg &InfoMsg, float x, float y)
|
||||||
{
|
{
|
||||||
ColorRGBA TextColor;
|
ColorRGBA TextColor;
|
||||||
if(g_Config.m_ClChatTeamColors && InfoMsg.m_VictimDDTeam)
|
if(InfoMsg.m_VictimDDTeam)
|
||||||
TextColor = m_pClient->GetDDTeamColor(InfoMsg.m_VictimDDTeam, 0.75f);
|
TextColor = m_pClient->GetDDTeamColor(InfoMsg.m_VictimDDTeam, 0.75f);
|
||||||
else
|
else
|
||||||
TextColor = TextRender()->DefaultTextColor();
|
TextColor = TextRender()->DefaultTextColor();
|
||||||
|
@ -402,7 +402,7 @@ void CInfoMessages::RenderFinishMsg(const CInfoMsg &InfoMsg, float x, float y)
|
||||||
{
|
{
|
||||||
x -= TextRender()->GetBoundingBoxTextContainer(InfoMsg.m_VictimTextContainerIndex).m_W;
|
x -= TextRender()->GetBoundingBoxTextContainer(InfoMsg.m_VictimTextContainerIndex).m_W;
|
||||||
ColorRGBA TextColor;
|
ColorRGBA TextColor;
|
||||||
if(g_Config.m_ClChatTeamColors && InfoMsg.m_VictimDDTeam)
|
if(InfoMsg.m_VictimDDTeam)
|
||||||
TextColor = m_pClient->GetDDTeamColor(InfoMsg.m_VictimDDTeam, 0.75f);
|
TextColor = m_pClient->GetDDTeamColor(InfoMsg.m_VictimDDTeam, 0.75f);
|
||||||
else
|
else
|
||||||
TextColor = TextRender()->DefaultTextColor();
|
TextColor = TextRender()->DefaultTextColor();
|
||||||
|
|
Loading…
Reference in a new issue