mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
don't use highlight chat sound for server messages
This commit is contained in:
parent
eaef2ce48a
commit
2beae20208
|
@ -256,12 +256,12 @@ void CChat::AddLine(int ClientID, int Team, const char *pLine)
|
||||||
}
|
}
|
||||||
|
|
||||||
// play sound
|
// play sound
|
||||||
if(Highlighted)
|
if(ClientID == -1)
|
||||||
m_pClient->m_pSounds->Play(CSounds::CHN_GUI, SOUND_CHAT_HIGHLIGHT, 0, vec2(0.0f, 0.0f));
|
|
||||||
else if(ClientID >= 0)
|
|
||||||
m_pClient->m_pSounds->Play(CSounds::CHN_GUI, SOUND_CHAT_CLIENT, 0, vec2(0,0));
|
|
||||||
else
|
|
||||||
m_pClient->m_pSounds->Play(CSounds::CHN_GUI, SOUND_CHAT_SERVER, 0, vec2(0,0));
|
m_pClient->m_pSounds->Play(CSounds::CHN_GUI, SOUND_CHAT_SERVER, 0, vec2(0,0));
|
||||||
|
else if(Highlighted)
|
||||||
|
m_pClient->m_pSounds->Play(CSounds::CHN_GUI, SOUND_CHAT_HIGHLIGHT, 0, vec2(0.0f, 0.0f));
|
||||||
|
else
|
||||||
|
m_pClient->m_pSounds->Play(CSounds::CHN_GUI, SOUND_CHAT_CLIENT, 0, vec2(0,0));
|
||||||
}
|
}
|
||||||
|
|
||||||
void CChat::OnRender()
|
void CChat::OnRender()
|
||||||
|
|
Loading…
Reference in a new issue