switched client and highlight chat sound. Closes #630

This commit is contained in:
oy 2012-01-06 20:06:13 +01:00
parent 2785293469
commit 6649d651a8

View file

@ -338,7 +338,7 @@ void CChat::AddLine(int ClientID, int Team, const char *pLine)
{ {
if(Now-m_aLastSoundPlayed[CHAT_HIGHLIGHT] >= time_freq()*3/10) if(Now-m_aLastSoundPlayed[CHAT_HIGHLIGHT] >= time_freq()*3/10)
{ {
m_pClient->m_pSounds->Play(CSounds::CHN_GUI, SOUND_CHAT_HIGHLIGHT, 0); m_pClient->m_pSounds->Play(CSounds::CHN_GUI, SOUND_CHAT_CLIENT, 0);
m_aLastSoundPlayed[CHAT_HIGHLIGHT] = Now; m_aLastSoundPlayed[CHAT_HIGHLIGHT] = Now;
} }
} }
@ -346,7 +346,7 @@ void CChat::AddLine(int ClientID, int Team, const char *pLine)
{ {
if(Now-m_aLastSoundPlayed[CHAT_CLIENT] >= time_freq()*3/10) if(Now-m_aLastSoundPlayed[CHAT_CLIENT] >= time_freq()*3/10)
{ {
m_pClient->m_pSounds->Play(CSounds::CHN_GUI, SOUND_CHAT_CLIENT, 0); m_pClient->m_pSounds->Play(CSounds::CHN_GUI, SOUND_CHAT_HIGHLIGHT, 0);
m_aLastSoundPlayed[CHAT_CLIENT] = Now; m_aLastSoundPlayed[CHAT_CLIENT] = Now;
} }
} }