v4_copy( colour, fade_colour );
fade_colour[3] *= 1.0f-fade_amt;
- float timer_delta = (vg.time - world.routes.last_interaction) * (1.0/60.0),
+ /* 1 minute timer */
+ float timer_delta = (vg.time - world.routes.last_interaction) * (1.0/30.0),
timer_scale = 1.0f - vg_minf( timer_delta, 1.0f );
/*
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
{
1, sizeof( struct route ) );
struct route *route = &r->routes[r->route_count];
+ memset( route, 0, sizeof(struct route) );
v3_copy( inf->colour, route->colour );
route->colour[3] = 1.0f;