X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_routes.c;h=0bfdcac8bf92ac1406032a6f0c427f73e04ecad4;hb=23733c7ba8fac9eb4ac1f4839c400f0248abee6e;hp=e0b5fa3f0498c211a108155c01743f960850a1fa;hpb=02c9203df66d93f21c0e64f51193bcbeaabfc9bd;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_routes.c b/world_routes.c index e0b5fa3..0bfdcac 100644 --- 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" ); + + route->ui_residual = 1.0f; + route->ui_residual_block_w = route->ui_first_block_width; } /* @@ -554,6 +557,8 @@ static void world_gen_routes_ent_init( world_instance *world ){ 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;