mirror of https://github.com/OpenRCT2/OpenRCT2.git
Rename CHAT_HISTORY_SIZE to kChatHistorySize
This commit is contained in:
parent
ba1f066710
commit
c264ec1077
|
@ -158,7 +158,7 @@ void ChatDraw(DrawPixelInfo& dpi, uint8_t chatBackgroundColor)
|
|||
int32_t stringHeight = 0;
|
||||
|
||||
// Draw chat history
|
||||
for (size_t i = 0; i < CHAT_HISTORY_SIZE; i++, screenCoords.y -= stringHeight)
|
||||
for (size_t i = 0; i < kChatHistorySize; i++, screenCoords.y -= stringHeight)
|
||||
{
|
||||
if (i >= _chatHistory.size())
|
||||
break;
|
||||
|
@ -220,7 +220,7 @@ void ChatAddHistory(std::string_view s)
|
|||
std::string buffer = timeBuffer;
|
||||
buffer += s;
|
||||
|
||||
if (_chatHistory.size() >= CHAT_HISTORY_SIZE)
|
||||
if (_chatHistory.size() >= kChatHistorySize)
|
||||
{
|
||||
_chatHistory.pop_back();
|
||||
_chatHistoryTime.pop_back();
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
|
||||
#include <string_view>
|
||||
|
||||
#define CHAT_HISTORY_SIZE 10
|
||||
constexpr int8_t kChatHistorySize = 10;
|
||||
#define CHAT_INPUT_SIZE 1024
|
||||
#define CHAT_MAX_MESSAGE_LENGTH 200
|
||||
#define CHAT_MAX_WINDOW_WIDTH 600
|
||||
|
|
Loading…
Reference in New Issue