changeset 19:8ab79a86aa73

*** empty log message ***
author gongo
date Sat, 04 Nov 2006 09:13:06 +0000
parents 3780d1b2943e
children b1ba4dad7f6e
files game.c schedule.c
diffstat 2 files changed, 0 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/game.c	Sat Nov 04 09:09:21 2006 +0000
+++ b/game.c	Sat Nov 04 09:13:06 2006 +0000
@@ -38,7 +38,6 @@
 game_main()
 {
     Bool flg = TRUE;
-    game.state = GAME_INIT;
     set_sche(sche_game_init);
 
     game.play_id = linda_init();
--- a/schedule.c	Sat Nov 04 09:09:21 2006 +0000
+++ b/schedule.c	Sat Nov 04 09:13:06 2006 +0000
@@ -131,7 +131,6 @@
     graphic_init();
     camera_init();
 
-    game.state = GAME_SELECT_CAR;
     set_sche(sche_game_opening);
 }
 
@@ -147,14 +146,12 @@
     }
 
     if (pad.st == 1) {
-	game.state = GAME_SELECT_CAR;
 	set_sche(sche_game_select_car);
     }
 
     /*
     if (game.play_id == 1) {
 	if (title_scene() < 0){
-	    game.state = GAME_SELECT_CAR;
 	}
     } else if (game.play_id == 2) {
 	if (i==0){
@@ -186,7 +183,6 @@
 	    (game.car_id < 2) ? MAXCAR : game.car_id - 1;
     }
     if (pad.circle == 1) {
-	game.state = GAME_SELECT_COURSE;
 	set_sche(sche_game_select_course);
     }
 }
@@ -209,7 +205,6 @@
 	    (game.course_id < 2) ? MAXFIELD : game.course_id - 1;
     }
     if (pad.circle == 1) {
-	game.state = GAME_READY;
 	set_sche(sche_game_ready);
     }
 }
@@ -230,11 +225,9 @@
     blink_count = (blink_count > 70) ? 0 : blink_count + 1;
 
     if (pad.st > 0) {
-	game.state = GAME_MAIN_INIT;
 	set_sche(sche_game_main_init);
     }
     if (pad.cross > 0) {
-	game.state = GAME_SELECT_CAR;
 	set_sche(sche_game_select_car);
     }
 }
@@ -245,7 +238,6 @@
     if (!game.jiki)
 	play_init();
     RUNNIG=0;
-    game.state = GAME_MAIN;
     set_sche(sche_game_main);
 }
 
@@ -286,7 +278,6 @@
     if (game.rap > MAXRAP) {
 	wait_init();
 	ranking = 1;
-	game.state = GAME_GOAL;
 	set_sche(sche_game_main_goal);
     }
 
@@ -308,7 +299,6 @@
 	game.camera_type = !game.camera_type;
     }
     if (pad.st == 1) {
-	game.state = GAME_PAUSE;
 	set_sche(sche_game_main_pause);
     }
 }
@@ -331,15 +321,12 @@
 
     if (pad.circle == 1) {
 	if (game.select == 0) {
-	    game.state = GAME_MAIN;
 	    set_sche(sche_game_main);
 	} else {
-	    game.state = GAME_FINISH;
 	    set_sche(sche_game_main_finish);
 	}
     }
     if (pad.st == 1) {
-	game.state = GAME_MAIN;
 	set_sche(sche_game_main);
     }
     if (pad.up == 1 || pad.down == 1) {
@@ -373,7 +360,6 @@
     carNode_draw();
     camera_update(game.jiki->body->transfer);
     if (pad.st == 1) {
-	game.state = GAME_FINISH;
 	set_sche(sche_game_main_finish);
     }
 }
@@ -390,7 +376,6 @@
 	game_env_init();
     }
     if (pad.st == 1) {
-	game.state = GAME_OPENING;
 	set_sche(sche_game_opening);
     }
 }