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/proto.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/base/proto.c') 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