changeset 12:b405fe1a6920

*** empty log message ***
author gongo
date Sat, 04 Nov 2006 08:55:26 +0000
parents 41d3037c34c8
children 64ec983dd5db
files game.c schedule.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/game.c	Sat Nov 04 08:51:52 2006 +0000
+++ b/game.c	Sat Nov 04 08:55:26 2006 +0000
@@ -32,13 +32,14 @@
 Game game;
 
 extern void sche_game_init();
-game.exec = (void*)sche_game_init;
+extern void set_sche(void*);
 
 void
 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 08:51:52 2006 +0000
+++ b/schedule.c	Sat Nov 04 08:55:26 2006 +0000
@@ -67,7 +67,7 @@
 
 static int i=0;
 
-static void
+void
 set_sche(void *func)
 {
     game.exec = func;