don't use highlight chat sound for server messages

This commit is contained in:
oy 2011-03-22 00:34:07 +01:00
parent eaef2ce48a
commit 2beae20208

View file

@ -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()