about summary refs log tree commit diff
path: root/src/game/client/components/chat.h
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2012-01-09 23:13:51 +0100
committeroy <Tom_Adams@web.de>2012-01-09 23:13:51 +0100
commite97cfaecad4f55f329ce92e31f68df0786c599de (patch)
tree4a5508e140b5ccec4249572e788b4affb2f3dda7 /src/game/client/components/chat.h
parent0b0f8e2f1ce5dbdc8fb0e79eeada21fec1f05c02 (diff)
downloadzcatch-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.h12
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);