diff options
author | planetmaker <planetmaker@openttd.org> | 2014-04-08 20:19:41 +0000 |
---|---|---|
committer | planetmaker <planetmaker@openttd.org> | 2014-04-08 20:19:41 +0000 |
commit | 3e9c10f9e11935a82d33fd5c66592d795c279777 (patch) | |
tree | b9c0e4a9e81a00c70865c0f7b8695c6bc8f17987 /src/network/network.h | |
parent | bef953a32cd0a8bf3dad5cbbe2798dc3ab57ac5c (diff) | |
download | openttd-3e9c10f9e11935a82d33fd5c66592d795c279777.tar.xz |
(svn r26449) -Add: Allow more sound sleep for dedicated servers when there's nothing to do and nobody paying attention
Diffstat (limited to 'src/network/network.h')
-rw-r--r-- | src/network/network.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/network.h b/src/network/network.h index 3dd63d03c..26f94482e 100644 --- a/src/network/network.h +++ b/src/network/network.h @@ -18,6 +18,7 @@ void NetworkStartUp(); void NetworkShutDown(); void NetworkDrawChatMessage(); +bool HasClients(); extern bool _networking; ///< are we in networking mode? extern bool _network_server; ///< network-server is active @@ -31,6 +32,7 @@ extern bool _is_network_server; ///< Does this client wants to be a network-ser static inline void NetworkStartUp() {} static inline void NetworkShutDown() {} static inline void NetworkDrawChatMessage() {} +static inline bool HasClients() { return false; } #define _networking 0 #define _network_server 0 |