From b84b59153c587248ca8a6a94a6d93977e851233f Mon Sep 17 00:00:00 2001 From: oroborus Date: Sat, 15 Mar 2008 18:35:48 +0000 Subject: - moznost skompilovat public server bez GUI ( pomocou Makefile-publicServer ) port sa nastavuje ako ./publicserver --port - jeto iba prvotna verzia treba to este odladit a zostabilnit git-svn-id: http://opensvn.csie.org/tuxanci_ng@18 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/net_multiplayer.c | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'src/net_multiplayer.c') diff --git a/src/net_multiplayer.c b/src/net_multiplayer.c index e3f5d93..410ee99 100644 --- a/src/net_multiplayer.c +++ b/src/net_multiplayer.c @@ -8,20 +8,21 @@ #include "list.h" #include "tux.h" #include "item.h" -#include "network.h" #include "buffer.h" #include "string_length.h" -#include "screen.h" -#include "screen_world.h" -#include "screen_setting.h" -#include "screen_choiceArena.h" #include "arenaFile.h" #include "net_multiplayer.h" #include "server.h" -#include "client.h" #include "tcp.h" #include "udp.h" +#ifndef BUBLIC_SERVER +#include "screen.h" +#include "screen_setting.h" +#include "screen_choiceArena.h" +#include "client.h" +#endif + static int netGameType; static int netProtoType = NET_PROTOCOL_TYPE_UDP; @@ -62,6 +63,7 @@ int initNetMuliplayer(int type, char *ip, int port) break; +#ifndef BUBLIC_SERVER case NET_GAME_TYPE_CLIENT : switch( netProtoType ) { @@ -83,7 +85,7 @@ int initNetMuliplayer(int type, char *ip, int port) break; } break; - +#endif default : assert( ! "Premenna netGameType ma zlu hodnotu !" ); break; @@ -115,6 +117,7 @@ void eventNetMultiplayer() } break; +#ifndef BUBLIC_SERVER case NET_GAME_TYPE_CLIENT : switch( netProtoType ) { @@ -129,7 +132,7 @@ void eventNetMultiplayer() break; } break; - +#endif default : assert( ! "Premenna netGameType ma zlu hodnotu !" ); break; @@ -155,6 +158,7 @@ void quitNetMultiplayer() } break; +#ifndef BUBLIC_SERVER case NET_GAME_TYPE_CLIENT : switch( netProtoType ) { @@ -166,6 +170,7 @@ void quitNetMultiplayer() break; } break; +#endif default : assert( ! "Premenna netGameType ma zlu hodnotu !" ); -- cgit v1.2.3