diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-15 18:35:48 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-15 18:35:48 +0000 |
| commit | b84b59153c587248ca8a6a94a6d93977e851233f (patch) | |
| tree | e13b33f09ee6ac130bb6045626618b1c5fc4d787 /src/net_multiplayer.c | |
| parent | 6038f9434f1eb40caf7992ece9a3972e95a9fc11 (diff) | |
- moznost skompilovat public server bez GUI ( pomocou Makefile-publicServer )
port sa nastavuje ako ./publicserver --port <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
Diffstat (limited to 'src/net_multiplayer.c')
| -rw-r--r-- | src/net_multiplayer.c | 21 |
1 files changed, 13 insertions, 8 deletions
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 !" ); |