summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-12 20:31:49 +0000
committerrubidium <rubidium@openttd.org>2008-08-12 20:31:49 +0000
commitedc1b3cdc2928cc1c1c6937fb232bf7804f39ad9 (patch)
tree75ac870129a02e9b519511dabcec2ea9ad586ad5 /src
parent20536882264e5c1545edede25d628f3480a517fc (diff)
downloadopenttd-edc1b3cdc2928cc1c1c6937fb232bf7804f39ad9.tar.xz
(svn r14055) -Codechange: increase buffers for (dedicated) consoles as they couldn't use the full "extent" of the new chat message limit.
Diffstat (limited to 'src')
-rw-r--r--src/console_internal.h7
-rw-r--r--src/video/dedicated_v.cpp2
2 files changed, 4 insertions, 5 deletions
diff --git a/src/console_internal.h b/src/console_internal.h
index e1cd2d739..64603806f 100644
--- a/src/console_internal.h
+++ b/src/console_internal.h
@@ -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,
diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp
index 60a20f072..c54f3d826 100644
--- a/src/video/dedicated_v.cpp
+++ b/src/video/dedicated_v.cpp
@@ -216,7 +216,7 @@ static uint32 GetTime()
static void DedicatedHandleKeyInput()
{
- static char input_line[200] = "";
+ static char input_line[1024] = "";
if (!InputWaiting()) return;