diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-04-04 18:46:15 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-04-04 18:46:15 +0000 |
| commit | 6dbcded21e7e9614b967b922987be6bcf3f3fe58 (patch) | |
| tree | cfa806296d8880c4136681c5cb96d06a2e856eb0 /src/net_multiplayer.c | |
| parent | 617ba439aab5f1798eb02618dfcfbed80a5baf28 (diff) | |
- moznost nastavit si klavesy na ovladanie v ~/.tuxanci-ng/keycontrol.conf
- moznost prekladat texty do roznych jazykov, defult jazyk je EN, nastavenie je v ~/.tuxanci-ng/lang.conf
- moznost nastavit server pomocou konfiguraku ./server.conf
- uptime v sekudach a samorestartovaci casocvac tam este _NIE_ _JE_
git-svn-id: http://opensvn.csie.org/tuxanci_ng@39 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/net_multiplayer.c')
| -rw-r--r-- | src/net_multiplayer.c | 39 |
1 files changed, 2 insertions, 37 deletions
diff --git a/src/net_multiplayer.c b/src/net_multiplayer.c index 87538c1..92e9504 100644 --- a/src/net_multiplayer.c +++ b/src/net_multiplayer.c @@ -1,4 +1,3 @@ - #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -42,14 +41,6 @@ int initNetMuliplayer(int type, char *ip, int port) break; case NET_GAME_TYPE_SERVER : -#ifdef SUPPORT_NET_UNIX_TCP - if( initTcpServer(port) != 0 ) - { - fprintf(stderr, "Neomzem inicalizovat sietovu hru pre server !\n"); - netGameType = NET_GAME_TYPE_NONE; - return -1; - } -#endif #ifdef SUPPORT_NET_UNIX_UDP if( initUdpServer(ip, port) != 0 ) { @@ -70,14 +61,6 @@ int initNetMuliplayer(int type, char *ip, int port) #ifndef PUBLIC_SERVER case NET_GAME_TYPE_CLIENT : -#ifdef SUPPORT_NET_UNIX_TCP - if( initTcpClient(ip, port) != 0 ) - { - fprintf(stderr, "Neomzem inicalizovat sietovu hru pre clienta !\n"); - netGameType = NET_GAME_TYPE_NONE; - return -1; - } -#endif #ifdef SUPPORT_NET_UNIX_UDP if( initUdpClient(ip, port) != 0 ) { @@ -112,28 +95,16 @@ void eventNetMultiplayer() break; case NET_GAME_TYPE_SERVER : -#ifdef SUPPORT_NET_UNIX_TCP - selectServerTcpSocket(); - eventClientListBuffer(); -#endif #ifdef SUPPORT_NET_UNIX_UDP - selectServerUdpSocket(); - eventClientListBuffer(); - eventPeriodicSyncClient(); + eventServer(); #endif #ifdef SUPPORT_NET_SDL_UDP - selectServerSdlUdpSocket(); - eventClientListBuffer(); - eventPeriodicSyncClient(); + eventServer(); #endif break; #ifndef PUBLIC_SERVER case NET_GAME_TYPE_CLIENT : -#ifdef SUPPORT_NET_UNIX_TCP - selectClientTcpSocket(); - eventServerBuffer(); -#endif #ifdef SUPPORT_NET_UNIX_UDP eventPingServer(); selectClientUdpSocket(); @@ -160,9 +131,6 @@ void quitNetMultiplayer() break; case NET_GAME_TYPE_SERVER : -#ifdef SUPPORT_NET_UNIX_TCP - quitTcpServer(); -#endif #ifdef SUPPORT_NET_UNIX_UDP quitUdpServer(); #endif @@ -173,9 +141,6 @@ void quitNetMultiplayer() #ifndef PUBLIC_SERVER case NET_GAME_TYPE_CLIENT : -#ifdef SUPPORT_NET_UNIX_TCP - quitTcpClient(); -#endif #ifdef SUPPORT_NET_UNIX_UDP quitUdpClient(); #endif |