projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cull back of gate
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_routes.c
diff --git
a/world_routes.c
b/world_routes.c
index e0b5fa3f0498c211a108155c01743f960850a1fa..fbd335ef5d88b622cee6cd0b49fd5d771429577a 100644
(file)
--- a/
world_routes.c
+++ b/
world_routes.c
@@
-135,6
+135,9
@@
static void world_routes_time_lap( world_instance *world, ent_route *route ){
vg_info( "valid sections: %u\n", valid_sections );
vg_info( "----------------------------\n" );
vg_info( "valid sections: %u\n", valid_sections );
vg_info( "----------------------------\n" );
+
+ route->ui_residual = 1.0f;
+ route->ui_residual_block_w = route->ui_first_block_width;
}
/*
}
/*
@@
-312,8
+315,8
@@
void world_routes_place_curve( world_instance *world, ent_route *route,
v3_muladds( ha.pos, up, 0.06f+gap, va.co );
v3_muladds( hb.pos, up, 0.06f+gap, vb.co );
v3_muladds( ha.pos, up, 0.06f+gap, va.co );
v3_muladds( hb.pos, up, 0.06f+gap, vb.co );
- scene_vert_pack_norm( &va, up );
- scene_vert_pack_norm( &vb, up );
+ scene_vert_pack_norm( &va, up
, 0.0f
);
+ scene_vert_pack_norm( &vb, up
, 0.0f
);
float t1 = (travel_length / total_length) * patch_count;
va.uv[0] = t1;
float t1 = (travel_length / total_length) * patch_count;
va.uv[0] = t1;
@@
-554,6
+557,8
@@
static void world_gen_routes_ent_init( world_instance *world ){
route->flags = 0x00;
route->best_laptime = 0.0;
route->flags = 0x00;
route->best_laptime = 0.0;
+ route->ui_stopper = 0.0f;
+ route->ui_residual = 0.0f;
if( mdl_arrcount(&world->ent_region) )
route->flags |= k_ent_route_flag_out_of_zone;
if( mdl_arrcount(&world->ent_region) )
route->flags |= k_ent_route_flag_out_of_zone;