X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_routes.c;h=1ff33fe8501e9b90201613f1e0701fd63119257a;hb=96f8ce1f47009e5f763b05566db3f6cca07cdc76;hp=efde3644dd07d3203988a0d1ddb577ad42d9cafe;hpb=4c95c9c3e6033cd1360adacef3c80fc4da933715;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_routes.c b/world_routes.c index efde364..1ff33fe 100644 --- a/world_routes.c +++ b/world_routes.c @@ -22,7 +22,7 @@ VG_STATIC void world_routes_local_set_record( world_instance *world, ent_route *route, - double lap_time ) + f64 lap_time ) { vg_success( " NEW LAP TIME: %f\n", lap_time ); @@ -31,18 +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 ){