diff --git a/src/openrct2/interface/Chat.cpp b/src/openrct2/interface/Chat.cpp index 984ec3b2a8..f51abf981b 100644 --- a/src/openrct2/interface/Chat.cpp +++ b/src/openrct2/interface/Chat.cpp @@ -53,7 +53,7 @@ bool ChatAvailable() void ChatOpen() { gChatOpen = true; - _chatTextInputSession = ContextStartTextInput(_chatCurrentLine, CHAT_MAX_MESSAGE_LENGTH); + _chatTextInputSession = ContextStartTextInput(_chatCurrentLine, kChatMaxMessageLength); } void ChatClose() diff --git a/src/openrct2/interface/Chat.h b/src/openrct2/interface/Chat.h index 3963da6f3b..6d9b1d8c85 100644 --- a/src/openrct2/interface/Chat.h +++ b/src/openrct2/interface/Chat.h @@ -16,7 +16,7 @@ constexpr int8_t kChatHistorySize = 10; constexpr int16_t kChatInputSize = 1024; -#define CHAT_MAX_MESSAGE_LENGTH 200 +constexpr int kChatMaxMessageLength = 200; #define CHAT_MAX_WINDOW_WIDTH 600 struct DrawPixelInfo;