From 337f9ca549cbefa7a4ef94724c55af6d9eb13d17 Mon Sep 17 00:00:00 2001 From: Harry-Hopkinson Date: Mon, 15 Apr 2024 15:35:00 +0000 Subject: [PATCH] Rename CHAT_MAX_MESSAGE_LENGTH to kChatMaxMessageLength --- src/openrct2/interface/Chat.cpp | 2 +- src/openrct2/interface/Chat.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;