summaryrefslogtreecommitdiff
path: root/src/settings_type.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-04-27 21:10:11 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-13 23:13:17 +0200
commitcc6c078dec3792173b5d2057667bec9597c71d90 (patch)
tree3634a76f302f1dbae914679fe7097da7df6b9e5c /src/settings_type.h
parentc73d64adf984036a99d6974b130eda65dfc18c6c (diff)
downloadopenttd-cc6c078dec3792173b5d2057667bec9597c71d90.tar.xz
Codechange: move hostnames 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 248761fe6..0828baa58 100644
--- a/src/settings_type.h
+++ b/src/settings_type.h
@@ -269,7 +269,7 @@ struct NetworkSettings {
bool server_advertise; ///< advertise the server to the masterserver
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
- char connect_to_ip[NETWORK_HOSTNAME_PORT_LENGTH]; ///< default for the "Add server" query
+ std::string connect_to_ip; ///< default for the "Add server" query
char network_id[NETWORK_SERVER_ID_LENGTH]; ///< 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
@@ -281,7 +281,7 @@ struct NetworkSettings {
Year restart_game_year; ///< year the server restarts
uint8 min_active_clients; ///< minimum amount of active clients to unpause the game
bool reload_cfg; ///< reload the config file before restarting
- char last_joined[NETWORK_HOSTNAME_PORT_LENGTH]; ///< Last joined server
+ std::string last_joined; ///< Last joined server
bool no_http_content_downloads; ///< do not do content downloads over HTTP
};