changeset 66:4af6c92304bb

*** empty log message ***
author gongo
date Thu, 09 Nov 2006 03:27:18 +0000
parents 3e7db5ef4691
children 74c59d9abde3
files linda.c
diffstat 1 files changed, 10 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/linda.c	Thu Nov 09 03:16:22 2006 +0000
+++ b/linda.c	Thu Nov 09 03:27:18 2006 +0000
@@ -300,7 +300,7 @@
     }
 
     if (p == 1 && connect == CLIENT_MAX) {
-	linda_set_schedule(linda_sche_ready0, MODE_READY);
+	linda_set_schedule(linda_sche_main_init0, MODE_READY);
 	return TRUE;
     } else {
 	return FALSE;
@@ -318,7 +318,7 @@
 	game.course_id = course_id;
 	return FALSE;
     } else if (mode == MODE_READY) {
-	linda_set_schedule(linda_sche_ready1, MODE_READY);
+	linda_set_schedule(linda_sche_main_init1, MODE_READY);
 	return TRUE;
     } else {
 	return FALSE;
@@ -327,14 +327,14 @@
 
 
 static Bool
-linda_sche_ready0(int p)
+linda_sche_main_init0(int p)
 {
     linda_set_schedule(linda_sche_main0, MODE_MAIN);
     return TRUE;
 }
 
 static Bool
-linda_sche_ready1(int p)
+linda_sche_main_init1(int p)
 {
     linda_set_schedule(linda_sche_main1, MODE_MAIN);
     return TRUE;
@@ -346,15 +346,13 @@
     FMATRIX data;
     static int i=0;
 
-    if (i++ > 100) {
-	ps2_vu0_unit_matrix(data);
-	ps2_vu0_copy_matrix(data, game.jiki->body->transfer);
-	ps2_vu0_copy_vector(data[3], game.jiki->location);
+    ps2_vu0_unit_matrix(data);
+    ps2_vu0_copy_matrix(data, game.jiki->body->transfer);
+    ps2_vu0_copy_vector(data[3], game.jiki->location);
 	
-	linda_seq[game.play_id] = psx_in(game.play_id);
-	send_packet(game.play_id, MODE_MAIN, 1, 1, (char*)data);
-	i = 0;
-    }
+    linda_seq[game.play_id] = psx_in(game.play_id);
+    send_packet(game.play_id, MODE_MAIN, 1, 1, (char*)data);
+
     return FALSE;
 }