From c68df329f2483d8fc9b75488c695787cd18c20a4 Mon Sep 17 00:00:00 2001 From: oroborus Date: Sat, 16 Aug 2008 21:00:29 +0000 Subject: - vsetky widegety pouzivaju widget_t ( priparava na kontajner s widgetmi ) git-svn-id: http://opensvn.csie.org/tuxanci_ng@201 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/base/checkFront.c | 4 ++-- src/base/list.c | 2 +- src/base/modules.c | 2 +- src/base/proto.c | 7 +++++-- 4 files changed, 9 insertions(+), 6 deletions(-) (limited to 'src/base') diff --git a/src/base/checkFront.c b/src/base/checkFront.c index 2f6e00a..536de1b 100644 --- a/src/base/checkFront.c +++ b/src/base/checkFront.c @@ -60,7 +60,7 @@ void eventMsgInCheckFront(client_t *client) int i; currentTime = getMyTime(); - for(i = 0; i < client->listSendMsg->count; i++) { + for (i = 0; i < client->listSendMsg->count; i++) { checkfront_t *this; this = (checkfront_t *)client->listSendMsg->list[i]; @@ -93,7 +93,7 @@ void delMsgInCheckFront(list_t *listCheckFront, int id) { int i; - for( i = 0 ; i < listCheckFront->count ; i++ ) { + for (i = 0 ; i < listCheckFront->count ; i++ ) { checkfront_t *this; this = (checkfront_t *)listCheckFront->list[i]; diff --git a/src/base/list.c b/src/base/list.c index b59f64b..72ea95e 100755 --- a/src/base/list.c +++ b/src/base/list.c @@ -164,4 +164,4 @@ void destroyListItem(list_t *p, void *f) for (i = 0; i < p->count; i++) fce(p->list[i]); destroyList(p); -} \ No newline at end of file +} diff --git a/src/base/modules.c b/src/base/modules.c index f03decd..fd9087f 100755 --- a/src/base/modules.c +++ b/src/base/modules.c @@ -160,7 +160,7 @@ static module_t* newModule(char *name) ret->fce_cmd = getFce(ret, "cmdArena"); ret->fce_recvMsg = getFce(ret, "recvMsg"); #ifdef DEBUG - printf(_("Loading module: \"%s\""), name); + printf(_("Loading module: \"%s\"\n"), name); #endif if (ret->fce_init(&export_fce) != 0) { fprintf(stderr, _("Failed initialization of module \"%s\""), name); diff --git a/src/base/proto.c b/src/base/proto.c index cb54bab..6c4113f 100644 --- a/src/base/proto.c +++ b/src/base/proto.c @@ -351,6 +351,7 @@ void proto_recv_init_client(char *msg) int x, y, n; int check_id; int recv_count; + arena_t *arena; assert( msg != NULL ); @@ -370,7 +371,9 @@ void proto_recv_init_client(char *msg) } setWorldArena( getArenaIdFormNetName(arena_name) ); - setMaxCountRound(n); + arena = getCurrentArena(); + + arena->max_countRound = n; tux = newTux(); replaceTuxID(tux, id); @@ -381,7 +384,7 @@ void proto_recv_init_client(char *msg) getSettingNameRight(tux->name); - addObjectToSpace(getCurrentArena()->spaceTux, tux); + addObjectToSpace(arena->spaceTux, tux); } #endif -- cgit v1.2.3