projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dont try to load nothign
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_render.c
diff --git
a/world_render.c
b/world_render.c
index 2542ce3b19b1a48e450beb78479d212fed592a99..8c346b677606b832313031a891f474bcfa2b20a8 100644
(file)
--- 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; i<mdl_arrcount(&world->ent_gate); i++ ){
ent_gate *gi = mdl_arritm( &world->ent_gate, i );
for( u32 i=0; i<mdl_arrcount(&world->ent_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] );
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( 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;
world->rendering_gate = NULL;
+ render_gate_unlinked( world, gate, cam );
return;
}
return;
}
@@
-852,6
+856,10
@@
static void world_prerender( world_instance *world ){
world->time = 0.834;
}
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;
struct ub_world_lighting *state = &world->ub_lighting;
state->g_time = world->time;