diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-16 21:00:29 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-08-16 21:00:29 +0000 |
| commit | c68df329f2483d8fc9b75488c695787cd18c20a4 (patch) | |
| tree | 18e11cd70360c77606ecdeafe5dbd8f9ff0c12d7 /src/base | |
| parent | 753fde16397b5943091aa1e9112cea1e5ded0ca5 (diff) | |
- 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
Diffstat (limited to 'src/base')
| -rw-r--r-- | src/base/checkFront.c | 4 | ||||
| -rwxr-xr-x | src/base/list.c | 2 | ||||
| -rwxr-xr-x | src/base/modules.c | 2 | ||||
| -rw-r--r-- | src/base/proto.c | 7 |
4 files changed, 9 insertions, 6 deletions
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 |