diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-14 15:25:01 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-03-14 15:25:01 +0000 |
| commit | a4e34c257a4f5966ce699f48d30b3528bdaa45e4 (patch) | |
| tree | 90835e3ad5263748ee099fc23db99b3cd12d9370 /src/screen_world.c | |
| parent | 1438b79069821cba744a4ea4739324560be64fb6 (diff) | |
- program bol prepisany tak, aby sa dal v buducnosti sietovy multiplayer prepisat pre protokol UDP
( BTW network.[ch] je uz zombia )
git-svn-id: http://opensvn.csie.org/tuxanci_ng@14 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/screen_world.c')
| -rw-r--r-- | src/screen_world.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/screen_world.c b/src/screen_world.c index b35e82e..068ac08 100644 --- a/src/screen_world.c +++ b/src/screen_world.c @@ -30,6 +30,7 @@ #include "net_multiplayer.h" #include "arena.h" #include "arenaFile.h" +#include "proto.h" static arena_t *arena; static int count; @@ -47,6 +48,8 @@ void setGameType() { int ret = 0; + ret = initNetMuliplayer( getSettingGameType(), getSettingIP(), getSettingPort() ); +/* if( getSettingGameType() == NET_GAME_TYPE_SERVER ) { ret = initServer( getSettingPort() ); @@ -56,7 +59,7 @@ void setGameType() { ret = initClient( getSettingPort() , getSettingIP() ); } - +*/ if( ret != 0 ) { fprintf(stderr, "Chyba inicalizacie sieti !\n"); @@ -72,7 +75,6 @@ arena_t* getWorldArena() void setWorldArena(int id) { arena = getArena(id); - netSetArena(arena); } void setMaxCountRound(int n) |