From cad526ef3658ad6420939a6d51707c9dbfee97c3 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Thu, 12 Oct 2006 14:59:27 +0000 Subject: (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. --- network_server.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'network_server.h') 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 */ -- cgit v1.2.3-70-g09d2