From e97cfaecad4f55f329ce92e31f68df0786c599de Mon Sep 17 00:00:00 2001 From: oy Date: Mon, 9 Jan 2012 23:13:51 +0100 Subject: buffered chat input. Closes #916 --- src/game/client/components/chat.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (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 f007f314..09519516 100644 --- a/src/game/client/components/chat.h +++ b/src/game/client/components/chat.h @@ -52,8 +52,16 @@ class CChat : public CComponent char m_aCompletionBuffer[256]; int m_PlaceholderOffset; int m_PlaceholderLength; - char *m_pHistoryEntry; - TStaticRingBuffer m_History; + + struct CHistoryEntry + { + int m_Team; + char m_aText[1]; + }; + CHistoryEntry *m_pHistoryEntry; + TStaticRingBuffer m_History; + int m_PendingChatCounter; + int64 m_LastChatSend; int64 m_aLastSoundPlayed[CHAT_NUM]; static void ConSay(IConsole::IResult *pResult, void *pUserData); -- cgit 1.4.1