summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-17 14:11:26 +0000
committertron <tron@openttd.org>2006-06-17 14:11:26 +0000
commit150b9cb869f2cfcaf55e52e1c3f5f357312718e4 (patch)
treebcd045651348f53ca1f324960911862ec93d0341
parentd9febd1458ca9c53d1d9aa3f0c0e8ffeab3b13a4 (diff)
downloadopenttd-150b9cb869f2cfcaf55e52e1c3f5f357312718e4.tar.xz
(svn r5298) Hide function declarations and remove function stubs which aren't needed in the !ENABLE_NETWORK case
-rw-r--r--network.c4
-rw-r--r--network.h14
2 files changed, 7 insertions, 11 deletions
diff --git a/network.c b/network.c
index 262a61705..622c96270 100644
--- a/network.c
+++ b/network.c
@@ -1433,9 +1433,5 @@ void NetworkShutDown(void)
}
#endif
}
-#else
-
-void ParseConnectionString(const char **player, const char **port, char *connection_string) {}
-void NetworkUpdateClientInfo(uint16 client_index) {}
#endif /* ENABLE_NETWORK */
diff --git a/network.h b/network.h
index 6c9057cc9..7722b20c8 100644
--- a/network.h
+++ b/network.h
@@ -215,6 +215,13 @@ byte NetworkSpectatorCount(void);
VARDEF char *_network_host_list[10];
VARDEF char *_network_ban_list[25];
+void ParseConnectionString(const char **player, const char **port, char *connection_string);
+void NetworkUpdateClientInfo(uint16 client_index);
+void NetworkAddServer(const char *b);
+void NetworkRebuildHostList(void);
+bool NetworkChangeCompanyPassword(byte argc, char *argv[]);
+void NetworkPopulateCompanyInfo(void);
+
#endif /* ENABLE_NETWORK */
// Those variables must always be registered!
@@ -224,11 +231,4 @@ VARDEF bool _network_server; // network-server is active
VARDEF bool _network_dedicated; // are we a dedicated server?
VARDEF PlayerID _network_playas; // an id to play as..
-void ParseConnectionString(const char **player, const char **port, char *connection_string);
-void NetworkUpdateClientInfo(uint16 client_index);
-void NetworkAddServer(const char *b);
-void NetworkRebuildHostList(void);
-bool NetworkChangeCompanyPassword(byte argc, char *argv[]);
-void NetworkPopulateCompanyInfo(void);
-
#endif /* NETWORK_H */