Mercurial > hg > old > magoroku_racing
changeset 82:b449f5b7cfd2
*** empty log message ***
author | gongo |
---|---|
date | Thu, 09 Nov 2006 08:50:31 +0000 |
parents | 8016a4ad065b |
children | 22821fc0dddb |
files | linda.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/linda.c Thu Nov 09 08:48:13 2006 +0000 +++ b/linda.c Thu Nov 09 08:50:31 2006 +0000 @@ -82,7 +82,7 @@ pkt = make_packet(mode, car, course, data); psx_out(dest, pkt, len); free(pkt); - } else if (reply = psx_reply(linda_seq[dest])) { + } else if (reply = psx_reply(linda_seq[dest])) { pkt = make_packet(mode, car, course, data); psx_out(dest, pkt, len); free(pkt); @@ -106,7 +106,6 @@ if (course) *course = get_header(pkt, PKT_COURSEID_OFFSET); if (data) memcpy(data, pkt+PKT_DATA_OFFSET, sizeof(FMATRIX)); - psx_free(reply); linda_seq[id] = psx_rd(id); } @@ -131,7 +130,7 @@ for (i=1; i<=CLIENT_MAX; i++) { if (i == id) continue; get_packet(i, &flg, &mode, NULL, NULL, NULL); - if (flg == 1 && mode = MODE_WAIT) { + if (flg == 1 && mode == MODE_WAIT) { connect++; flg = 0; }