Make it possible to stop road vehicles from slowing down in curves so "diagonal"...
[openttd-joker.git] / src / network / network.h
blob315d379e018b95e2ca8d61e541bec8c60ec5c056
1 /* $Id: network.h 21853 2011-01-19 16:37:06Z rubidium $ */
3 /*
4 * This file is part of OpenTTD.
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 */
10 /** @file network.h Basic functions/variables used all over the place. */
12 #ifndef NETWORK_H
13 #define NETWORK_H
16 #ifdef ENABLE_NETWORK
18 void NetworkStartUp();
19 void NetworkShutDown();
20 void NetworkDrawChatMessage();
21 bool HasClients();
23 extern bool _networking; ///< are we in networking mode?
24 extern bool _network_server; ///< network-server is active
25 extern bool _network_available; ///< is network mode available?
26 extern bool _network_dedicated; ///< are we a dedicated server?
27 extern bool _is_network_server; ///< Does this client wants to be a network-server?
29 #else /* ENABLE_NETWORK */
30 /* Network function stubs when networking is disabled */
32 static inline void NetworkStartUp() {}
33 static inline void NetworkShutDown() {}
34 static inline void NetworkDrawChatMessage() {}
35 static inline bool HasClients() { return false; }
37 #define _networking 0
38 #define _network_server 0
39 #define _network_available 0
40 #define _network_dedicated 0
41 #define _is_network_server 0
43 #endif /* ENABLE_NETWORK */
44 #endif /* NETWORK_H */