summaryrefslogtreecommitdiff
path: root/src/base/proto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/proto.c')
-rw-r--r--src/base/proto.c7
1 files changed, 5 insertions, 2 deletions
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