MENY
[carveJwlIkooP6JGAAIwe30JlM.git] / world_routes.h
index 480f70504a9b714861b0c0e8c3ef0bbfb1752f45..d8d36d210efcccc7dfd8747c7148f039af0664e5 100644 (file)
@@ -496,7 +496,15 @@ static void world_routes_local_set_record( u32 route, double lap_time )
       temp.time     = time_centiseconds;
 
       highscores_push_record( &temp );
-      track_infos[ pr->track_id ].push = 1;
+
+      struct track_info *pti = &track_infos[ pr->track_id ];
+      pti->push = 1;
+      
+      if( pti->achievement_id )
+      {
+         steam_set_achievement( pti->achievement_id );
+         steam_store_achievements();
+      }
    }
    else
    {