diff options
author | rubidium <rubidium@openttd.org> | 2008-08-12 20:31:49 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-08-12 20:31:49 +0000 |
commit | 203b5eed278040b7ecb41a2a2ef5ae27a9b0ec21 (patch) | |
tree | 75ac870129a02e9b519511dabcec2ea9ad586ad5 | |
parent | 4ae352d288257aa7566775c1db1f35435cc751d9 (diff) | |
download | openttd-203b5eed278040b7ecb41a2a2ef5ae27a9b0ec21.tar.xz |
(svn r14055) -Codechange: increase buffers for (dedicated) consoles as they couldn't use the full "extent" of the new chat message limit.
-rw-r--r-- | src/console_internal.h | 7 | ||||
-rw-r--r-- | src/video/dedicated_v.cpp | 2 |
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; |