X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_render.c;h=8c346b677606b832313031a891f474bcfa2b20a8;hb=74b2136d5b41b18e2eec698f1fd11b503aa1100a;hp=2542ce3b19b1a48e450beb78479d212fed592a99;hpb=61559a4d856351c40f5ad6be67b811ec01b037f9;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_render.c b/world_render.c index 2542ce3..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; } @@ -852,6 +856,10 @@ static void world_prerender( world_instance *world ){ world->time = 0.834; } + if( world->info.flags & 0x1 ){ + world->time = world->info.timezone; + } + struct ub_world_lighting *state = &world->ub_lighting; state->g_time = world->time;