From 88a8fa010486ce251273b5ea94197310a6a1ea3c Mon Sep 17 00:00:00 2001 From: dominik Date: Sat, 18 Dec 2004 18:58:03 +0000 Subject: (svn r1162) The server list can now be automatically filled from the config file. Add a section [servers] with the addresses each in a new line. Those will be checked upon OpenTTD startup. --- network.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'network.h') diff --git a/network.h b/network.h index 8439997d3..fe02bb42b 100644 --- a/network.h +++ b/network.h @@ -131,6 +131,8 @@ VARDEF NetworkClientInfo _network_client_info[MAX_CLIENT_INFO]; VARDEF char _network_player_name[NETWORK_NAME_LENGTH]; VARDEF char _network_default_ip[NETWORK_HOSTNAME_LENGTH]; +#define MAX_SAVED_SERVERS 10 +VARDEF char *_network_server_list[MAX_SAVED_SERVERS]; VARDEF uint16 _network_own_client_index; VARDEF char _network_unique_id[NETWORK_NAME_LENGTH]; // Our own unique ID @@ -191,5 +193,6 @@ VARDEF byte _network_playas; // an id to play as.. void ParseConnectionString(const byte **player, const byte **port, byte *connection_string); void NetworkUpdateClientInfo(uint16 client_index); +void AddServer(byte *b); #endif /* NETWORK_H */ -- cgit v1.2.3-54-g00ecf