summaryrefslogtreecommitdiff
path: root/network_server.h
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-10-12 14:59:27 +0000
committerDarkvater <Darkvater@openttd.org>2006-10-12 14:59:27 +0000
commit6b96b5ffd0498cd9c624605db0edf4ad85ec4505 (patch)
tree9d8040d778bee72bdeda716299434c03e98d3b14 /network_server.h
parentb38ef09afc6c1ff34800730be7236f3723c30b8b (diff)
downloadopenttd-6b96b5ffd0498cd9c624605db0edf4ad85ec4505.tar.xz
(svn r6754) -Codechange: Remove some #idef ENABLE_NETWORK specific defines. With networking
disabled hardcode _networking/_network_available to zero and let the compiler handle all optimizations.
Diffstat (limited to 'network_server.h')
-rw-r--r--network_server.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/network_server.h b/network_server.h
index 4b98bf31b..66ea4704e 100644
--- a/network_server.h
+++ b/network_server.h
@@ -28,6 +28,12 @@ static inline const char* GetPlayerIP(const NetworkClientInfo* ci)
return inet_ntoa(addr);
}
+#else /* ENABLE_NETWORK */
+/* Network function stubs when networking is disabled */
+
+static inline void NetworkServerMonthlyLoop(void) {}
+static inline void NetworkServerYearlyLoop(void) {}
+
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_SERVER_H */