summaryrefslogtreecommitdiff
path: root/network.h
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2004-12-18 18:58:03 +0000
committerdominik <dominik@openttd.org>2004-12-18 18:58:03 +0000
commit88a8fa010486ce251273b5ea94197310a6a1ea3c (patch)
tree5e845319d36cb833763f462a08f7be2e4c008118 /network.h
parente33a63ee8dd27aa59df6f5374dfeb677096e547e (diff)
downloadopenttd-88a8fa010486ce251273b5ea94197310a6a1ea3c.tar.xz
(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.
Diffstat (limited to 'network.h')
-rw-r--r--network.h3
1 files changed, 3 insertions, 0 deletions
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 */