mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-19 04:53:12 +01:00
Rename MAX_SERVER_DESCRIPTION_LENGTH to kMaxServerDescriptionLength
This commit is contained in:
committed by
Harry Hopkinson
parent
7aed4d18f2
commit
74513374d1
@@ -101,7 +101,7 @@ static Widget _windowServerStartWidgets[] = {
|
||||
WindowStartTextbox(*this, widgetIndex, _name, 64);
|
||||
break;
|
||||
case WIDX_DESCRIPTION_INPUT:
|
||||
WindowStartTextbox(*this, widgetIndex, _description, MAX_SERVER_DESCRIPTION_LENGTH);
|
||||
WindowStartTextbox(*this, widgetIndex, _description, kMaxServerDescriptionLength);
|
||||
break;
|
||||
case WIDX_GREETING_INPUT:
|
||||
WindowStartTextbox(*this, widgetIndex, _greeting, kChatInputSize);
|
||||
@@ -258,7 +258,7 @@ static Widget _windowServerStartWidgets[] = {
|
||||
private:
|
||||
char _port[7];
|
||||
char _name[65];
|
||||
char _description[MAX_SERVER_DESCRIPTION_LENGTH];
|
||||
char _description[kMaxServerDescriptionLength];
|
||||
char _greeting[kChatInputSize];
|
||||
char _password[33];
|
||||
static void ScenarioSelectCallback(const utf8* path)
|
||||
|
||||
@@ -9,10 +9,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
constexpr uint16_t kNetworkDefaultPort = 11753;
|
||||
constexpr uint16_t kNetworkLanBroadcastPort = 11754;
|
||||
constexpr const char* kNetworkLanBroadcastMsg = "openrct2.server.query";
|
||||
#define MAX_SERVER_DESCRIPTION_LENGTH 256
|
||||
constexpr uint16_t kMaxServerDescriptionLength = 256;
|
||||
|
||||
#include "../Game.h"
|
||||
#include "../common.h"
|
||||
|
||||
Reference in New Issue
Block a user