diff options
| author | oy <Tom_Adams@web.de> | 2012-01-09 23:13:51 +0100 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2012-01-09 23:13:51 +0100 |
| commit | e97cfaecad4f55f329ce92e31f68df0786c599de (patch) | |
| tree | 4a5508e140b5ccec4249572e788b4affb2f3dda7 /src/game/client/components/chat.h | |
| parent | 0b0f8e2f1ce5dbdc8fb0e79eeada21fec1f05c02 (diff) | |
| download | zcatch-e97cfaecad4f55f329ce92e31f68df0786c599de.tar.gz zcatch-e97cfaecad4f55f329ce92e31f68df0786c599de.zip | |
buffered chat input. Closes #916
Diffstat (limited to 'src/game/client/components/chat.h')
| -rw-r--r-- | src/game/client/components/chat.h | 12 |
1 files changed, 10 insertions, 2 deletions
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<char, 64*1024, CRingBufferBase::FLAG_RECYCLE> m_History; + + struct CHistoryEntry + { + int m_Team; + char m_aText[1]; + }; + CHistoryEntry *m_pHistoryEntry; + TStaticRingBuffer<CHistoryEntry, 64*1024, CRingBufferBase::FLAG_RECYCLE> m_History; + int m_PendingChatCounter; + int64 m_LastChatSend; int64 m_aLastSoundPlayed[CHAT_NUM]; static void ConSay(IConsole::IResult *pResult, void *pUserData); |