X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_render.h;h=9693e814dc9c0c07347fd03883f07905265bdc09;hb=4f96bd0040e35ecb21d353ee2b895129682d22c1;hp=32a15baeddd6e0bdf84769f41f2c88b4ec73adc0;hpb=b93c61c54e7ac56f6808b9a563d3e4221ca8482e;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_render.h b/world_render.h index 32a15ba..9693e81 100644 --- a/world_render.h +++ b/world_render.h @@ -202,9 +202,9 @@ static void render_world_gates( m4x4f projection, v3f playerco, m4x3f camera ) float closest = INFINITY; int id = 0; - for( int i=0; igate.co[0], camera[3] ); if( dist < closest ) @@ -214,9 +214,9 @@ static void render_world_gates( m4x4f projection, v3f playerco, m4x3f camera ) } } - render_gate( &world.routes.gates[id].gate, playerco, camera ); + render_gate( &world_routes.gates[id].gate, playerco, camera ); v3_lerp( world.render_gate_pos, - world.routes.gates[id].gate.co[0], + world_routes.gates[id].gate.co[0], 1.0f, world.render_gate_pos ); } @@ -232,9 +232,9 @@ static void render_world( m4x4f projection, m4x3f camera ) int closest = 0; float min_dist = INFINITY; - for( int i=0; i