Mercurial > hg > Game > Cerium
diff Renderer/Test/dynamic_create.cc @ 843:de64695a7f02 draft
cleanup unused variables and fix warning.
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 02 Jun 2010 02:03:40 +0900 |
parents | 8d702fc5d77a |
children | ba9e10f636eb |
line wrap: on
line diff
--- a/Renderer/Test/dynamic_create.cc Wed Jun 02 01:40:06 2010 +0900 +++ b/Renderer/Test/dynamic_create.cc Wed Jun 02 02:03:40 2010 +0900 @@ -94,11 +94,11 @@ { SceneGraphRoot *sgroot = (SceneGraphRoot *)sgroot_; // LindaServerから座標データを取得してオブジェクトに反映させる。 - unsigned char *reply_rd = psx_reply(node->seq_rd); - if (reply_rd != NULL) { - set_position(node, reply_rd); - free(reply_rd); - node->seq_rd = psx_wait_rd(sgroot->tid, node->id * 10 + 1); + unsigned char *reply = psx_reply(node->seq); + if (reply != NULL) { + set_position(node, reply); + free(reply); + node->seq = psx_wait_rd(sgroot->tid, node->id * 10 + 1); } } @@ -118,7 +118,7 @@ sgroot->createFromXMLmemory(sgroot->tmanager, child, (char *)data, len); child->set_move_collision(moon_move, moon_collision); child->id = serial_id; - child->seq_rd = psx_wait_rd(sgroot->tid, serial_id * 10 + 1); + child->seq = psx_wait_rd(sgroot->tid, serial_id * 10 + 1); return child; } @@ -166,7 +166,7 @@ psx_callback_in(carg->tid, carg->read_id, callbacker, arg); } -static char *linda = (char *)"localhost"; +static const char *linda = "localhost"; static void linda_init(TaskManager *manager, SceneGraphRoot *sgroot, client_t *clist, SceneGraphPtr node)