Mercurial > hg > old > magoroku_racing.bad
changeset 61:39162caa4587
*** empty log message ***
author | gongo |
---|---|
date | Thu, 09 Nov 2006 01:50:54 +0000 |
parents | 4f977a556ba7 |
children | d71fbefaa9a9 |
files | linda.c |
diffstat | 1 files changed, 9 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/linda.c Thu Nov 09 01:46:19 2006 +0000 +++ b/linda.c Thu Nov 09 01:50:54 2006 +0000 @@ -19,6 +19,8 @@ static CarPtr linda_carlist[CLIENT_MAX+1]; static int linda_seq[CLIENT_MAX+1]; +static Bool (*sche_func)(int); + static void set_header(unsigned int data, char *pkt, int offset) { @@ -105,7 +107,7 @@ linda_set_schedule(void *func, int mode) { linda_seq[game.play_id] = psx_in(game.play_id); - game.linda_exec = func; + sche_func = func; send_packet(game.play_id, mode, 1, 1, NULL); } @@ -373,6 +375,12 @@ return FALSE; } +Bool +linda_update(int p) +{ + return sche_func(p); +} + #if 0 static void linda_enemy_update(int id, CarPtr enemy, CarInfoPtr tpl) @@ -566,11 +574,6 @@ } #endif -void -linda_update() -{ -} - static int get_id() {