(svn r14055) -Codechange: increase buffers for (dedicated) consoles as they couldn't use the full "extent" of the new chat message limit.
authorrubidium
Tue, 12 Aug 2008 20:31:49 +0000
changeset 9905 591248f0d341
parent 9904 774f078c0e5c
child 9906 9c0a829bf58e
(svn r14055) -Codechange: increase buffers for (dedicated) consoles as they couldn't use the full "extent" of the new chat message limit.
src/console_internal.h
src/video/dedicated_v.cpp
--- a/src/console_internal.h	Tue Aug 12 19:29:10 2008 +0000
+++ b/src/console_internal.h	Tue Aug 12 20:31:49 2008 +0000
@@ -7,10 +7,9 @@
 
 #include "console_func.h"
 
-/* maximum length of a typed in command */
-#define ICON_CMDLN_SIZE 255
-/* maximum length of a totally expanded command */
-#define ICON_MAX_STREAMSIZE 1024
+enum {
+	ICON_CMDLN_SIZE     = 1024, ///< maximum length of a typed in command
+	ICON_MAX_STREAMSIZE = 2048, ///< maximum length of a totally expanded command
 
 enum IConsoleVarTypes {
 	ICONSOLE_VAR_BOOLEAN,
--- a/src/video/dedicated_v.cpp	Tue Aug 12 19:29:10 2008 +0000
+++ b/src/video/dedicated_v.cpp	Tue Aug 12 20:31:49 2008 +0000
@@ -216,7 +216,7 @@
 
 static void DedicatedHandleKeyInput()
 {
-	static char input_line[200] = "";
+	static char input_line[1024] = "";
 
 	if (!InputWaiting()) return;