changeset 81:8016a4ad065b

*** empty log message ***
author gongo
date Thu, 09 Nov 2006 08:48:13 +0000
parents 3ab2b0980fba
children b449f5b7cfd2
files linda.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/linda.c	Thu Nov 09 08:34:16 2006 +0000
+++ b/linda.c	Thu Nov 09 08:48:13 2006 +0000
@@ -115,7 +115,7 @@
 static void
 linda_set_schedule(void *func, int mode)
 {
-    linda_seq[game.play_id] = psx_in(game.play_id);
+    //linda_seq[game.play_id] = psx_in(game.play_id);
     sche_func = func;
     send_packet(game.play_id, mode, game.car_id, game.course_id, NULL);
 }
@@ -124,13 +124,14 @@
 linda_sche_wait0(int p)
 {
     int i, flg=0;
+    int mode = 0;
     int id = game.play_id;
     int connect = 1; // 接続済みユーザ数
 
     for (i=1; i<=CLIENT_MAX; i++) {
 	if (i == id) continue;
-	get_packet(i, &flg, NULL, NULL, NULL, NULL);
-	if (flg == 1) {
+	get_packet(i, &flg, &mode, NULL, NULL, NULL);
+	if (flg == 1 && mode = MODE_WAIT) {
 	    connect++;
 	    flg = 0;
 	}