mirror of https://github.com/OpenTTD/OpenTTD
(svn r15988) -Fix: inconsistency between using NETWORK_NAME_LENGTH and NETWORK_CLIENT_NAME_LENGTH for the length of client names.
parent
08e37a6f10
commit
1d4318c0d1
|
@ -305,7 +305,7 @@ protected:
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
NetworkGameWindow(const WindowDesc *desc) : QueryStringBaseWindow(NETWORK_NAME_LENGTH, desc)
|
NetworkGameWindow(const WindowDesc *desc) : QueryStringBaseWindow(NETWORK_CLIENT_NAME_LENGTH, desc)
|
||||||
{
|
{
|
||||||
this->widget[NGWW_CLIENTS].left = this->widget[NGWW_NAME].right + 1;
|
this->widget[NGWW_CLIENTS].left = this->widget[NGWW_NAME].right + 1;
|
||||||
this->widget[NGWW_MAPSIZE].left = this->widget[NGWW_NAME].right + 1;
|
this->widget[NGWW_MAPSIZE].left = this->widget[NGWW_NAME].right + 1;
|
||||||
|
|
|
@ -119,7 +119,7 @@ struct NetworkSettings {
|
||||||
char rcon_password[NETWORK_PASSWORD_LENGTH]; ///< passowrd for rconsole (server side)
|
char rcon_password[NETWORK_PASSWORD_LENGTH]; ///< passowrd for rconsole (server side)
|
||||||
bool server_advertise; ///< advertise the server to the masterserver
|
bool server_advertise; ///< advertise the server to the masterserver
|
||||||
uint8 lan_internet; ///< search on the LAN or internet for servers
|
uint8 lan_internet; ///< search on the LAN or internet for servers
|
||||||
char client_name[NETWORK_NAME_LENGTH]; ///< name of the player (as client)
|
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 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_LENGTH]; ///< default for the "Add server" query
|
||||||
char network_id[NETWORK_UNIQUE_ID_LENGTH]; ///< semi-unique ID of the client
|
char network_id[NETWORK_UNIQUE_ID_LENGTH]; ///< semi-unique ID of the client
|
||||||
|
|
Loading…
Reference in New Issue