X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_routes.c;h=1ff33fe8501e9b90201613f1e0701fd63119257a;hb=96f8ce1f47009e5f763b05566db3f6cca07cdc76;hp=d366a123e09ee0f3f5e079504dacf1e66bdbb440;hpb=9fb26bfce5b8130703a8c31818783912c2b3dfac;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_routes.c b/world_routes.c index d366a12..1ff33fe 100644 --- a/world_routes.c +++ b/world_routes.c @@ -31,17 +31,13 @@ void world_routes_local_set_record( world_instance *world, ent_route *route, if( time_centiseconds > (float)0xfffe ) /* skill issue */ return; - highscore_record temp; - temp.trackid = route->official_track_id; - temp.datetime = time(NULL); - temp.playerid = 0; - temp.points = 0; - temp.time = time_centiseconds; -#if 0 - highscores_push_record( &temp ); -#endif - struct track_info *ti = &track_infos[ route->official_track_id ]; + highscore_record *record = &ti->record; + record->trackid = route->official_track_id; + record->datetime = time(NULL); + record->playerid = 0; + record->points = 0; + record->time = time_centiseconds; ti->push = 1; if( ti->achievement_id ){