# HG changeset patch # User gongo # Date 1162629341 0 # Node ID 2fdac80d03ae47b9c79f2623e7d5f4b68d449a61 # Parent f60cb9a39d7ac955b70df75a1dccffc75c2e119a *** empty log message *** diff -r f60cb9a39d7a -r 2fdac80d03ae game.c --- a/game.c Sat Nov 04 08:28:46 2006 +0000 +++ b/game.c Sat Nov 04 08:35:41 2006 +0000 @@ -31,6 +31,9 @@ Game game; +extern void sche_game_init(); +game.exec = sche_game_init; + void game_main() { @@ -39,19 +42,16 @@ game.play_id = linda_init(); - while (flg == TRUE) { + while (1) { flg = padCheck(); - if (flg == FALSE && game.demo_flg == 1) { - game.state = GAME_FINISH; - flg = TRUE; + if (flg == FALSE) { + break; } schedule(); #ifdef LINDA - if (game.demo_flg == 0) { - linda_update(); - psx_sync_n(); - } + linda_update(); + psx_sync_n(); #endif } }