summaryrefslogtreecommitdiff
path: root/src/settings_type.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-04-29 12:09:03 +0200
committerPatric Stout <github@truebrain.nl>2021-04-29 20:12:11 +0200
commitbe37a2cab831cb645ef0f51dbcc944bd750f6926 (patch)
tree17efb6066721db8ce4974cee192cbd8a8193821a /src/settings_type.h
parent99f998805ba835f48a8061762fa19761760c7451 (diff)
downloadopenttd-be37a2cab831cb645ef0f51dbcc944bd750f6926.tar.xz
Codechange: use NetworkAddress instead of two host/port variables where possible
This also means we no longer need last_host/last_port, but can just use a single last_joined setting.
Diffstat (limited to 'src/settings_type.h')
-rw-r--r--src/settings_type.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/settings_type.h b/src/settings_type.h
index bb078205b..5361fc3f1 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)
char default_company_pass[NETWORK_PASSWORD_LENGTH]; ///< default password for new companies in encrypted form
- char connect_to_ip[NETWORK_HOSTNAME_LENGTH]; ///< default for the "Add server" query
+ char connect_to_ip[NETWORK_HOSTNAME_PORT_LENGTH]; ///< 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,8 +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_host[NETWORK_HOSTNAME_LENGTH]; ///< IP address of the last joined server
- uint16 last_port; ///< port of the last joined server
+ char last_joined[NETWORK_HOSTNAME_PORT_LENGTH]; ///< Last joined server
bool no_http_content_downloads; ///< do not do content downloads over HTTP
};