changeset 11:41d3037c34c8

*** empty log message ***
author gongo
date Sat, 04 Nov 2006 08:51:52 +0000
parents b000c4765eca
children b405fe1a6920
files controler.c game.c schedule.c
diffstat 3 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/controler.c	Sat Nov 04 08:39:47 2006 +0000
+++ b/controler.c	Sat Nov 04 08:51:52 2006 +0000
@@ -31,10 +31,6 @@
 	pad.st = 0;
     }
 
-    if (game.demo_flg == 1) {
-	pad1 = getPadValue();
-    }
-
     if (pad1 & SJOY_PS2_SELECT) {
 	pad.se += (pad.se < 2) ? 1 : 0;
     } else {
--- a/game.c	Sat Nov 04 08:39:47 2006 +0000
+++ b/game.c	Sat Nov 04 08:51:52 2006 +0000
@@ -32,7 +32,7 @@
 Game game;
 
 extern void sche_game_init();
-game.exec = sche_game_init;
+game.exec = (void*)sche_game_init;
 
 void
 game_main()
--- a/schedule.c	Sat Nov 04 08:39:47 2006 +0000
+++ b/schedule.c	Sat Nov 04 08:51:52 2006 +0000
@@ -67,7 +67,11 @@
 
 static int i=0;
 
-
+static void
+set_sche(void *func)
+{
+    game.exec = func;
+}
 
 static int
 get_random()