# HG changeset patch # User kazz@e065701.local # Date 1257499335 -32400 # Node ID b480cec5af53d5bf7c33b18b5c8b7f3c6f51351c # Parent e923249c318adeb05680f8cbde4ce6fba51c1886 linda not work diff -r e923249c318a -r b480cec5af53 Renderer/Test/dynamic_create.cc --- a/Renderer/Test/dynamic_create.cc Thu Nov 05 22:22:10 2009 +0900 +++ b/Renderer/Test/dynamic_create.cc Fri Nov 06 18:22:15 2009 +0900 @@ -85,16 +85,16 @@ { // LindaServerから座標データを取得してオブジェクトに反映させる。 // static int seq = 0; - float *reply; +// float *reply; // if (seq == 0) // seq = psx_wait_rd(sgroot->tid, node->id * 10 + 1); - unsigned char reply = psx_reply(node->seq); + unsigned char *reply = psx_reply(node->seq); if (reply != NULL) { - float *data = (float *)(reply + LINDA_HEADER_SIZE); - // ntoh_float(&data[0]); ntoh_float(&data[1]); + float *data = (float *)(reply + LINDA_HEADER_SIZE); + // ntoh_float(&data[0]); ntoh_float(&data[1]); for (int i = 0; i < 3; i++) { - node->xyz[i] = data[i]; + node->xyz[i] = ntohl(data[i]); } node->seq = psx_wait_rd(sgroot->tid, node->id * 10 + 1); }