diff options
| author | GreYFoX <GreYFoXGTi@GMaiL.CoM> | 2011-03-20 17:17:06 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-03-27 17:21:07 +0200 |
| commit | eb344c83ce082669dc3ec5495217e1bf6b76a9a4 (patch) | |
| tree | bea2ae7a796a724ec44b8afccd247129e6d5936f /src/game/client/components/chat.h | |
| parent | 4d5443affa2cccfbf84afbd3790dcc105e5edef0 (diff) | |
| download | zcatch-eb344c83ce082669dc3ec5495217e1bf6b76a9a4.tar.gz zcatch-eb344c83ce082669dc3ec5495217e1bf6b76a9a4.zip | |
Chat History. Closes #521
Diffstat (limited to 'src/game/client/components/chat.h')
| -rw-r--r-- | src/game/client/components/chat.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/client/components/chat.h b/src/game/client/components/chat.h index 652564ed..bb68d7be 100644 --- a/src/game/client/components/chat.h +++ b/src/game/client/components/chat.h @@ -2,6 +2,7 @@ /* If you are missing that file, acquire a complete release at teeworlds.com. */ #ifndef GAME_CLIENT_COMPONENTS_CHAT_H #define GAME_CLIENT_COMPONENTS_CHAT_H +#include <engine/shared/ringbuffer.h> #include <game/client/component.h> #include <game/client/lineinput.h> @@ -46,6 +47,8 @@ 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; static void ConSay(IConsole::IResult *pResult, void *pUserData); static void ConSayTeam(IConsole::IResult *pResult, void *pUserData); |