Mercurial > hg > old > magoroku_racing.bad
changeset 77:49bc5851acb9
*** empty log message ***
author | gongo |
---|---|
date | Thu, 09 Nov 2006 08:23:15 +0000 |
parents | cd3457b7e098 |
children | 53a0a1124a63 |
files | game.h linda.c |
diffstat | 2 files changed, 7 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/game.h Thu Nov 09 05:14:02 2006 +0000 +++ b/game.h Thu Nov 09 08:23:15 2006 +0000 @@ -3,7 +3,6 @@ */ typedef struct game { - Bool (*linda_exec)(); CarPtr jiki; int course_id; // $B%3!<%9(BID int car_id; // $B<+5!(BID
--- a/linda.c Thu Nov 09 05:14:02 2006 +0000 +++ b/linda.c Thu Nov 09 08:23:15 2006 +0000 @@ -76,9 +76,13 @@ if (data) len += sizeof(FMATRIX); - pkt = make_packet(mode, car, course, data); - psx_out(dest, pkt, len); - free(pkt); + reply = psx_reply(linda_seq[dest]); + if (reply) { + pkt = make_packet(mode, car, course, data); + psx_out(dest, pkt, len); + free(pkt); + psx_free(reply); + } } static void @@ -445,15 +449,10 @@ int i, flg, mode; int id = game.play_id; int connect = 1; - static int mmm = 0; FMATRIX po; CarPtr mycar = game.jiki; CarPtr enemy = NULL; - if (mmm++ < 30) - return FALSE; - mmm = 0; - for (i=1; i<=CLIENT_MAX; i++) { ps2_vu0_unit_matrix(po); get_packet(i, NULL, &mode, NULL, NULL, (char*)po);