X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_routes.c;h=2fe52a66367e61c76441c31b01295f64ada2610b;hb=74b2136d5b41b18e2eec698f1fd11b503aa1100a;hp=fbd335ef5d88b622cee6cd0b49fd5d771429577a;hpb=3557b0c25545139b4a5adf0ba44cdac63bf77302;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_routes.c b/world_routes.c index fbd335e..2fe52a6 100644 --- a/world_routes.c +++ b/world_routes.c @@ -904,7 +904,10 @@ static void render_gate_markers( m4x3f world_mmdl, int run_id, ent_gate *gate ){ for( u32 j=0; j<4; j++ ){ if( gate->routes[j] == run_id ){ m4x3f mmdl; - ent_gate_get_mdl_mtx( gate, mmdl ); + m4x3_copy( gate->to_world, mmdl ); + m3x3_scale( mmdl, (v3f){ gate->dimensions[0], + gate->dimensions[1], 1.0f } ); + m4x3_mul( world_mmdl, mmdl, mmdl ); shader_model_gate_uMdl( mmdl ); mdl_draw_submesh( &world_gates.sm_marker[j] );