diff options
| author | xHire <xhire@tuxportal.cz> | 2008-10-25 14:11:06 +0200 |
|---|---|---|
| committer | xHire <xhire@tuxportal.cz> | 2008-10-25 14:11:06 +0200 |
| commit | c8a9209d77a896bf49227e5aeccd54e91ccf29cc (patch) | |
| tree | 6b7367406ebbc6ce3ea5e0c8668c75f6fb3f6ae9 /src/base/net_multiplayer.h | |
| parent | cb9deba915dd7b114eeb76601eb1c8b07c1ba90f (diff) | |
Changed style of the code to the K&R standard
Diffstat (limited to 'src/base/net_multiplayer.h')
| -rw-r--r-- | src/base/net_multiplayer.h | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/src/base/net_multiplayer.h b/src/base/net_multiplayer.h index d92d3e5..f9118b1 100644 --- a/src/base/net_multiplayer.h +++ b/src/base/net_multiplayer.h @@ -1,36 +1,36 @@ #ifndef NET_MULTIPLAYER_H -#define NET_MULTIPLAYER_H +# define NET_MULTIPLAYER_H -#include "main.h" -#include "tux.h" -#include "item.h" -#include "arena.h" +# include "main.h" +# include "tux.h" +# include "item.h" +# include "arena.h" -#define PROTO_UDPv4 0 -#define PROTO_UDPv6 1 +# define PROTO_UDPv4 0 +# define PROTO_UDPv6 1 -#define NET_GAME_TYPE_NONE 0 -#define NET_GAME_TYPE_SERVER 1 -#define NET_GAME_TYPE_CLIENT 2 +# define NET_GAME_TYPE_NONE 0 +# define NET_GAME_TYPE_SERVER 1 +# define NET_GAME_TYPE_CLIENT 2 -#define NET_STATUS_OK 0 -#define NET_STATUS_ZOMBIE 1 +# define NET_STATUS_OK 0 +# define NET_STATUS_ZOMBIE 1 -#define NET_PROTOCOL_TYPE_TCP 0 -#define NET_PROTOCOL_TYPE_UDP 1 +# define NET_PROTOCOL_TYPE_TCP 0 +# define NET_PROTOCOL_TYPE_UDP 1 -#define LIMIT_BUFFER 10240 +# define LIMIT_BUFFER 10240 -#define NET_MASTER_SERVER_DOMAIN "ms.tuxanci.org" -#define NET_MASTER_SERVER "193.85.244.165" -#define NET_MASTER_PORT 2200 +# define NET_MASTER_SERVER_DOMAIN "ms.tuxanci.org" +# define NET_MASTER_SERVER "193.85.244.165" +# define NET_MASTER_PORT 2200 -#ifdef PUBLIC_SERVER +# ifdef PUBLIC_SERVER extern int initNetMuliplayerForGameServer(char *ip4, int port4, char *ip6, - int port6); -#endif + int port6); +# endif extern int initNetMuliplayer(int type, char *ip, int port, int proto); extern int getNetTypeGame(); |