# HG changeset patch # User gongo # Date 1163041117 0 # Node ID d71fbefaa9a9474203f81ee74723bfcb5c9a9113 # Parent 39162caa45870acffdc91aa8968c9d255613fb5c *** empty log message *** diff -r 39162caa4587 -r d71fbefaa9a9 ChangeLog --- a/ChangeLog Thu Nov 09 01:50:54 2006 +0000 +++ b/ChangeLog Thu Nov 09 02:58:37 2006 +0000 @@ -1,3 +1,11 @@ +2006-11-09 + + * xml.c + not found malloc-shelf has specified addr(~), in + xml.c at xml_free, ;ine 238 + 見つけたバグ。てか前からあるんだよなこのライブラリのバグ + いずれ直すってことで記録 + 2006-11-08 Wataru MIYAGUNI * linda.c: get_packet diff -r 39162caa4587 -r d71fbefaa9a9 schedule.c --- a/schedule.c Thu Nov 09 01:50:54 2006 +0000 +++ b/schedule.c Thu Nov 09 02:58:37 2006 +0000 @@ -18,6 +18,11 @@ #include "game_time.h" #include "schedule.h" +#ifdef LINDA +extern Bool linda_update(int); +#else +#define linda_update(int) TRUE +#endif #define MAXCAR 3 // 選択可能機体 #define MAXFIELD 2 // 選択可能コース @@ -53,8 +58,8 @@ static int i=0; -static void* (*sche_func_assumption)(); -static void* (*sche_func)() = &sche_game_init; +static void (*sche_func_assumption)(); +static void (*sche_func)() = &sche_game_init; static int change_state = 0; static void set_schedule_assumption(void *_func) @@ -64,6 +69,12 @@ } static void +unset_schedule() +{ + change_state = 0; +} + +static void set_schedule() { sche_func = sche_func_assumption; @@ -124,8 +135,7 @@ sche_game_wait() { gFont_SetString("WAITING...", 200, 100); - if (game.linda_exec() == TRUE) - set_schedule_assumption(sche_game_wait_ready); + set_schedule_assumption(sche_game_wait_ready); } /** @@ -141,8 +151,7 @@ if (pad.st != 1) { goto WAIT_READY; } } - if (game.linda_exec() == TRUE) - set_schedule_assumption(sche_game_opening); + set_schedule_assumption(sche_game_opening); WAIT_READY: return; @@ -161,7 +170,7 @@ if (pad.st != 1) { goto OPENING; } } - if (game.linda_exec() == TRUE) + set_schedule_assumption(sche_game_select_car); OPENING: @@ -204,7 +213,7 @@ if (game.play_id == 1) if (pad.circle != 1) { goto SELECT_CAR; } - if (game.linda_exec() == TRUE) + set_schedule_assumption(sche_game_select_course); SELECT_CAR: @@ -237,7 +246,7 @@ if (pad.circle != 1) { goto SELECT_COURSE; } } - if (game.linda_exec() == TRUE) + set_schedule_assumption(sche_game_ready); SELECT_COURSE: @@ -260,8 +269,7 @@ } blink_count = (blink_count > 70) ? 0 : blink_count + 1; - if (game.linda_exec() == TRUE) - set_schedule_assumption(sche_game_main_init); + set_schedule_assumption(sche_game_main_init); /* if (pad.st == 1) { @@ -433,6 +441,8 @@ if (linda_update(change_state) == TRUE) set_schedule(); + else + unset_schedule(); wait_sync(); swap_dbuff();