about summary refs log tree commit diff
path: root/src/game/client/components/console.hpp
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2009-10-27 14:38:53 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2009-10-27 14:38:53 +0000
commit878ede3080ab2cfb627aca505c397d9765052996 (patch)
tree98bff371070e1dca0295f0ca58d64ac4ee8042ce /src/game/client/components/console.hpp
parent9b99ec0e60b60134e46f2f71d707230948f7db03 (diff)
downloadzcatch-878ede3080ab2cfb627aca505c397d9765052996.tar.gz
zcatch-878ede3080ab2cfb627aca505c397d9765052996.zip
major update with stuff
Diffstat (limited to 'src/game/client/components/console.hpp')
-rw-r--r--src/game/client/components/console.hpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/game/client/components/console.hpp b/src/game/client/components/console.hpp
index 0a4adbda..78da98b8 100644
--- a/src/game/client/components/console.hpp
+++ b/src/game/client/components/console.hpp
@@ -1,4 +1,5 @@
 #include <engine/e_client_interface.h>
+#include <engine/e_ringbuffer.h>
 #include <game/client/component.hpp>
 #include <game/client/lineinput.hpp>
 
@@ -7,12 +8,9 @@ class CONSOLE : public COMPONENT
 	class INSTANCE
 	{
 	public:
-		char history_data[65536];
-		struct RINGBUFFER *history;
+		TStaticRingBuffer<char, 64*1024, CRingBufferBase::FLAG_RECYCLE> backlog;
+		TStaticRingBuffer<char, 64*1024, CRingBufferBase::FLAG_RECYCLE> history;
 		char *history_entry;
-		
-		char backlog_data[65536];
-		struct RINGBUFFER *backlog;
 
 		LINEINPUT input;