summaryrefslogtreecommitdiff
path: root/src/settings_type.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-04-27 21:25:52 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-13 23:13:17 +0200
commit02fdb5b210ede022cb921e869cdb34758ee5299e (patch)
treeb9487874886a7f86d56a489f02c37cb78db6df15 /src/settings_type.h
parentcc6c078dec3792173b5d2057667bec9597c71d90 (diff)
downloadopenttd-02fdb5b210ede022cb921e869cdb34758ee5299e.tar.xz
Codechange: move server name/id in settings to std::string
Diffstat (limited to 'src/settings_type.h')
-rw-r--r--src/settings_type.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings_type.h b/src/settings_type.h
index 0828baa58..8cff37142 100644
--- a/src/settings_type.h
+++ b/src/settings_type.h
@@ -262,7 +262,7 @@ struct NetworkSettings {
uint16 server_port; ///< port the server listens on
uint16 server_admin_port; ///< port the server listens on for the admin network
bool server_admin_chat; ///< allow private chat for the server to be distributed to the admin network
- char server_name[NETWORK_NAME_LENGTH]; ///< name of the server
+ std::string server_name; ///< name of the server
std::string server_password; ///< password for joining this server
std::string rcon_password; ///< password for rconsole (server side)
std::string admin_password; ///< password for the admin network
@@ -270,7 +270,7 @@ struct NetworkSettings {
char client_name[NETWORK_CLIENT_NAME_LENGTH]; ///< name of the player (as client)
std::string default_company_pass; ///< default password for new companies in encrypted form
std::string connect_to_ip; ///< default for the "Add server" query
- char network_id[NETWORK_SERVER_ID_LENGTH]; ///< network ID for servers
+ std::string network_id; ///< network ID for servers
bool autoclean_companies; ///< automatically remove companies that are not in use
uint8 autoclean_unprotected; ///< remove passwordless companies after this many months
uint8 autoclean_protected; ///< remove the password from passworded companies after this many months