summaryrefslogtreecommitdiff
path: root/network.h
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-02-20 17:49:26 +0000
committerDarkvater <Darkvater@openttd.org>2006-02-20 17:49:26 +0000
commitcb77d1447ea40982305e0bc059b2cb5cf14bf029 (patch)
tree93fc7b6931550959f7c4dd56209966a7b72e6782 /network.h
parentb5cd24f05d6babfd984d8b317e9c63062a0f711a (diff)
downloadopenttd-cb77d1447ea40982305e0bc059b2cb5cf14bf029.tar.xz
(svn r3621) - Codechange: Only define the server and bans list if network is enabled. Preparatory work for saving patches/settings to savegame.
Diffstat (limited to 'network.h')
-rw-r--r--network.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/network.h b/network.h
index 30b75e636..f3602ea48 100644
--- a/network.h
+++ b/network.h
@@ -212,13 +212,12 @@ NetworkGameList *NetworkQueryServer(const char* host, unsigned short port, bool
byte NetworkSpectatorCount(void);
+VARDEF char *_network_host_list[10];
+VARDEF char *_network_ban_list[25];
+
#endif /* ENABLE_NETWORK */
// Those variables must always be registered!
-#define MAX_SAVED_SERVERS 10
-VARDEF char *_network_host_list[MAX_SAVED_SERVERS];
-#define MAX_BANS 25
-VARDEF char *_network_ban_list[MAX_BANS];
VARDEF bool _networking;
VARDEF bool _network_available; // is network mode available?
VARDEF bool _network_server; // network-server is active