(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.
This commit is contained in:
Darkvater
2006-10-12 14:59:27 +00:00
parent b38ef09afc
commit 6b96b5ffd0
11 changed files with 55 additions and 54 deletions

View File

@@ -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 */