summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-01-17 19:55:18 +0000
committerrubidium <rubidium@openttd.org>2007-01-17 19:55:18 +0000
commitdec9698edc88411b3868bb45b08983e6879a89a2 (patch)
tree35cd7629cddfa8eec4767ad1cbbd18815866326d /src
parent11b19bb6abaf9ed510104c4eee1bc467c001aa89 (diff)
downloadopenttd-dec9698edc88411b3868bb45b08983e6879a89a2.tar.xz
(svn r8198) -Codechange: two global variables are not needed when network is disabled.
Diffstat (limited to 'src')
-rw-r--r--src/network/network.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/network/network.h b/src/network/network.h
index 046caa43f..a72e404a1 100644
--- a/src/network/network.h
+++ b/src/network/network.h
@@ -190,6 +190,8 @@ void NetworkDisconnect(void);
VARDEF bool _network_server; ///< network-server is active
VARDEF bool _network_available; ///< is network mode available?
+VARDEF bool _network_dedicated; ///< are we a dedicated server?
+VARDEF bool _network_advertise; ///< is the server advertising to the master server?
#else /* ENABLE_NETWORK */
/* Network function stubs when networking is disabled */
@@ -200,12 +202,12 @@ static inline void NetworkShutDown(void) {}
#define _networking 0
#define _network_server 0
#define _network_available 0
+#define _network_dedicated 0
+#define _network_advertise 0
#endif /* ENABLE_NETWORK */
-/* These variables must always be registered! */
-VARDEF bool _network_dedicated; ///< are we a dedicated server?
-VARDEF bool _network_advertise; ///< is the server advertising to the master server?
+/* Thss variable must always be registered! */
VARDEF PlayerID _network_playas; ///< an id to play as.. (see players.h:Players)
#endif /* NETWORK_H */