From b992c007c186fddf31f67a7ed0bd5789cfb9b85e Mon Sep 17 00:00:00 2001 From: xHire Date: Sun, 24 May 2009 20:13:33 +0200 Subject: Rectified the coding style in base .h files --- src/base/net_multiplayer.h | 44 +++++++++++++++++++++----------------------- 1 file changed, 21 insertions(+), 23 deletions(-) (limited to 'src/base/net_multiplayer.h') diff --git a/src/base/net_multiplayer.h b/src/base/net_multiplayer.h index 8d5ab46..3da7137 100644 --- a/src/base/net_multiplayer.h +++ b/src/base/net_multiplayer.h @@ -1,39 +1,37 @@ - #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 6800 +#define NET_MASTER_SERVER_DOMAIN "ms.tuxanci.org" +#define NET_MASTER_SERVER "83.167.234.16" +#define NET_MASTER_PORT 6800 -# ifdef PUBLIC_SERVER +#ifdef PUBLIC_SERVER extern int net_multiplayer_init_for_game_server(char *ip4, int port4, char *ip6, int port6); -# endif +#endif /* PUBLIC_SERVER */ extern int net_multiplayer_init(int type, char *ip, int port, int proto); extern int net_multiplayer_get_game_type(); extern void net_multiplayer_event(); extern void net_multiplayer_quit(); -#endif +#endif /* NET_MULTIPLAYER_H */ -- cgit v1.2.3