summaryrefslogtreecommitdiff
path: root/src/settings_type.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-04-27 20:26:56 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-13 23:13:17 +0200
commitc73d64adf984036a99d6974b130eda65dfc18c6c (patch)
tree05390f3269bf3279d51b290cde02cf17c395a626 /src/settings_type.h
parentf219354f891c45dcefad2dd0a2f1fd92b07e4ba5 (diff)
downloadopenttd-c73d64adf984036a99d6974b130eda65dfc18c6c.tar.xz
Codechange: move passwords in settings to std::string
Diffstat (limited to 'src/settings_type.h')
-rw-r--r--src/settings_type.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/settings_type.h b/src/settings_type.h
index 5361fc3f1..248761fe6 100644
--- a/src/settings_type.h
+++ b/src/settings_type.h
@@ -263,12 +263,12 @@ struct NetworkSettings {
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
- char server_password[NETWORK_PASSWORD_LENGTH]; ///< password for joining this server
- char rcon_password[NETWORK_PASSWORD_LENGTH]; ///< password for rconsole (server side)
- char admin_password[NETWORK_PASSWORD_LENGTH]; ///< password for the admin network
+ 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
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
+ 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
char network_id[NETWORK_SERVER_ID_LENGTH]; ///< network ID for servers
bool autoclean_companies; ///< automatically remove companies that are not in use