forked from mirror/OpenTTD
(svn r3621) - Codechange: Only define the server and bans list if network is enabled. Preparatory work for saving patches/settings to savegame.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user