-
-VG_STATIC
-void world_routes_local_set_record( world_instance *world, ent_route *route,
- f64 lap_time )
-{
- vg_success( " NEW LAP TIME: %f\n", lap_time );
-
- if( route->official_track_id != 0xffffffff ){
- double time_centiseconds = lap_time * 100.0;
- if( time_centiseconds > (float)0xfffe ) /* skill issue */
- return;
-
- 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 ){
- steam_set_achievement( ti->achievement_id );
- steam_store_achievements();
- }
- }
- else{
- vg_warn( "There is no associated track for this record...\n" );
- }
-}
-
-
-VG_STATIC void world_routes_clear( world_instance *world )