From f3ebfae18e409e48b6553019788fbf4818f40eee Mon Sep 17 00:00:00 2001 From: oy Date: Fri, 6 Jan 2012 19:47:49 +0100 Subject: drop multiple chat sounds that are played within 300ms. Closes #440 --- src/game/client/components/chat.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/game/client/components/chat.h') diff --git a/src/game/client/components/chat.h b/src/game/client/components/chat.h index 60e18387..f007f314 100644 --- a/src/game/client/components/chat.h +++ b/src/game/client/components/chat.h @@ -36,6 +36,11 @@ class CChat : public CComponent MODE_NONE=0, MODE_ALL, MODE_TEAM, + + CHAT_SERVER=0, + CHAT_HIGHLIGHT, + CHAT_CLIENT, + CHAT_NUM, }; int m_Mode; @@ -49,6 +54,7 @@ class CChat : public CComponent int m_PlaceholderLength; char *m_pHistoryEntry; TStaticRingBuffer m_History; + int64 m_aLastSoundPlayed[CHAT_NUM]; static void ConSay(IConsole::IResult *pResult, void *pUserData); static void ConSayTeam(IConsole::IResult *pResult, void *pUserData); -- cgit 1.4.1