Skip to content

Commit

Permalink
switched filenames of highlight and client chat message to prevent so…
Browse files Browse the repository at this point in the history
…me misunderstanding there. teeworlds#966
  • Loading branch information
oy committed Mar 20, 2013
1 parent b2a9e98 commit 7e83744
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified data/audio/sfx_msg-client.wv
Binary file not shown.
Binary file modified data/audio/sfx_msg-highlight.wv
Binary file not shown.
4 changes: 2 additions & 2 deletions src/game/client/components/chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,15 +357,15 @@ void CChat::AddLine(int ClientID, int Team, const char *pLine)
{
if(Now-m_aLastSoundPlayed[CHAT_HIGHLIGHT] >= 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_HIGHLIGHT] = Now;
}
}
else
{
if(Now-m_aLastSoundPlayed[CHAT_CLIENT] >= 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_CLIENT] = Now;
}
}
Expand Down

0 comments on commit 7e83744

Please sign in to comment.