Changed the server greeting buffer from 256 to 1024

* Changed the server greeting buffer size to accept longer strings
* Added comment explaining character limit for greeting buffer
* Moved chat constants to header file to allow access from includes
This commit is contained in:
Tom Delebo authored and Ted John committed 2016-08-20 23:20:53 +01:00
1 parent ff12c2b326
commit 50348e015e
3 files changed
+7 -7

No files matched your search

-5
View File
@@ -24,11 +24,6 @@
#include "../platform/platform.h"
#include "../util/util.h"
#define CHAT_HISTORY_SIZE 10
#define CHAT_INPUT_SIZE 256
#define CHAT_MAX_MESSAGE_LENGTH 200
#define CHAT_MAX_WINDOW_WIDTH 600
bool gChatOpen = false;
char _chatCurrentLine[CHAT_MAX_MESSAGE_LENGTH];
char _chatHistory[CHAT_HISTORY_SIZE][CHAT_INPUT_SIZE];
+5
View File
@@ -20,6 +20,11 @@
#include "../common.h"
#include "../drawing/drawing.h"
#define CHAT_HISTORY_SIZE 10
#define CHAT_INPUT_SIZE 1024
#define CHAT_MAX_MESSAGE_LENGTH 200
#define CHAT_MAX_WINDOW_WIDTH 600
extern bool gChatOpen;
void chat_open();