X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_render.c;h=8c346b677606b832313031a891f474bcfa2b20a8;hb=fbc68c65e01838feb77f47b30994b45fcc39ebaf;hp=990a1abfcc3ed6e565e322f36d67307d6b87114e;hpb=2c38f7b8f422374c4c46c5b636a7275b61876192;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_render.c b/world_render.c index 990a1ab..8c346b6 100644 --- a/world_render.c +++ b/world_render.c @@ -808,8 +808,10 @@ static void render_world_gates( world_instance *world, camera *cam ){ for( u32 i=0; ient_gate); i++ ){ ent_gate *gi = mdl_arritm( &world->ent_gate, i ); - if( !(gi->flags & k_ent_gate_linked) ) - continue; + + if( !(gi->flags & k_ent_gate_nonlocal) ) + if( !(gi->flags & k_ent_gate_linked) ) + continue; float dist = v3_dist2( gi->co[0], cam->transform[3] ); @@ -830,8 +832,10 @@ static void render_world_gates( world_instance *world, camera *cam ){ } if( gate->flags & k_ent_gate_nonlocal ){ - if( world_static.load_state != k_world_loader_none ){ + if( !(gate->flags & k_ent_gate_linked) || + (world_static.load_state != k_world_loader_none) ){ world->rendering_gate = NULL; + render_gate_unlinked( world, gate, cam ); return; }