changeset 3:38aedf763052

*** empty log message ***
author gongo
date Sat, 04 Nov 2006 08:07:28 +0000
parents b6a1385f19be
children d214fd22ef16
files schedule.c
diffstat 1 files changed, 56 insertions(+), 54 deletions(-) [+]
line wrap: on
line diff
--- a/schedule.c	Sat Nov 04 08:04:53 2006 +0000
+++ b/schedule.c	Sat Nov 04 08:07:28 2006 +0000
@@ -101,60 +101,6 @@
 }
 
 
-void
-schedule()
-{
-    char raptime[10];
-  
-    /* timer */
-    static int start_time,time_count;
-    static int RUNNIG=0;
-  
-
-    switch (game.state) {
-    case GAME_INIT:
-	sche_game_init();
-	break;
-    case GAME_OPENING:
-	sche_game_opening();
-	break;
-    case GAME_SELECT_CAR:
-	sche_game_select_car();
-	break;
-    case GAME_SELECT_COURSE:
-	sche_game_select_course();
-	break;
-    case GAME_READY:
-	sche_game_ready();
-	break;
-    case GAME_MAIN_INIT:
-	sche_game_main_init();
-	break;
-    case GAME_MAIN:
-	sche_game_main();
-	break;
-    case GAME_PAUSE:
-	sche_game_main_pause();
-	break;
-    case GAME_GOAL:
-	sche_game_main_goal();
-	break;
-    case GAME_FINISH:
-	sche_game_main_finish();
-	break;
-    default:
-	game.state = GAME_OPENING;
-	break;
-    }
-    
-    wait_sync();
-    swap_dbuff();
-    sjoy_poll();
-    
-    ps2util_sprite_Draw();
-    gSprite_Draw_Reset();
-    gFont_Draw_Reset();
-}
 
 void
 sche_game_init()
@@ -410,3 +356,59 @@
 	game.state = GAME_OPENING;
     }
 }
+
+
+void
+schedule()
+{
+    char raptime[10];
+  
+    /* timer */
+    static int start_time,time_count;
+    static int RUNNIG=0;
+  
+
+    switch (game.state) {
+    case GAME_INIT:
+	sche_game_init();
+	break;
+    case GAME_OPENING:
+	sche_game_opening();
+	break;
+    case GAME_SELECT_CAR:
+	sche_game_select_car();
+	break;
+    case GAME_SELECT_COURSE:
+	sche_game_select_course();
+	break;
+    case GAME_READY:
+	sche_game_ready();
+	break;
+    case GAME_MAIN_INIT:
+	sche_game_main_init();
+	break;
+    case GAME_MAIN:
+	sche_game_main();
+	break;
+    case GAME_PAUSE:
+	sche_game_main_pause();
+	break;
+    case GAME_GOAL:
+	sche_game_main_goal();
+	break;
+    case GAME_FINISH:
+	sche_game_main_finish();
+	break;
+    default:
+	game.state = GAME_OPENING;
+	break;
+    }
+    
+    wait_sync();
+    swap_dbuff();
+    sjoy_poll();
+    
+    ps2util_sprite_Draw();
+    gSprite_Draw_Reset();
+    gFont_Draw_Reset();
+}