fix server code error
[carveJwlIkooP6JGAAIwe30JlM.git] / world_routes.c
index 529fdefcccfcf2bfbf416fdb6c94e264b290829a..d366a123e09ee0f3f5e079504dacf1e66bdbb440 100644 (file)
@@ -14,6 +14,7 @@
 #include "font.h"
 #include "pointcloud.h"
 #include "gui.h"
+#include "steam.h"
 
 #include "shaders/scene_route.h"
 #include "shaders/routeui.h"
@@ -21,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 );
 
@@ -36,7 +37,6 @@ void world_routes_local_set_record( world_instance *world, ent_route *route,
       temp.playerid = 0;
       temp.points   = 0;
       temp.time     = time_centiseconds;
-
 #if 0
       highscores_push_record( &temp );
 #endif
@@ -45,10 +45,8 @@ void world_routes_local_set_record( world_instance *world, ent_route *route,
       ti->push = 1;
       
       if( ti->achievement_id ){
-#if 0
          steam_set_achievement( ti->achievement_id );
          steam_store_achievements();
-#endif
       }
    }
    else{