Mercurial > hg > old > magoroku_racing.bad
changeset 47:d7e0a5c33540
*** empty log message ***
author | gongo |
---|---|
date | Wed, 08 Nov 2006 06:17:21 +0000 |
parents | abadcc080667 |
children | 21178806ad26 |
files | Makefile game.c linda.c |
diffstat | 3 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Wed Nov 08 06:10:44 2006 +0000 +++ b/Makefile Wed Nov 08 06:17:21 2006 +0000 @@ -14,7 +14,7 @@ -I/usr/local/include/ps2util \ -I./Linda -DEFINES = -DDEBUG #-DLINDA +DEFINES = -DDEBUG -DLINDA DEBUGFLAGS = -Wall -g LIBPS2ARC = /usr/local/lib/libps2a.a
--- a/game.c Wed Nov 08 06:10:44 2006 +0000 +++ b/game.c Wed Nov 08 06:17:21 2006 +0000 @@ -18,6 +18,8 @@ /* linda.c */ #ifdef LINDA extern int linda_init(); +#else +define linda_init linda_init0 #endif Game game; @@ -32,7 +34,7 @@ } static int -linda_init() +linda_init0() { game.linda_exec = &ret; return 1;
--- a/linda.c Wed Nov 08 06:10:44 2006 +0000 +++ b/linda.c Wed Nov 08 06:17:21 2006 +0000 @@ -82,7 +82,8 @@ static void get_packet(int id, int *flg, int *mode, int *car, int *course, char *data) { - char *reply, *pkt; + char *reply = NULL; + char *pkt = NULL; reply = psx_reply(linda_seq[id]); if (reply) { @@ -114,7 +115,7 @@ int id = game.play_id; int connect = 1; // 接続済みユーザ数 - for (i=1; i<=CLIENT_MAX+1; i++) { + for (i=1; i<=CLIENT_MAX; i++) { if (i == id) continue; get_packet(i, &flg, NULL, NULL, NULL, NULL);