projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unlinked gate fx
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_render.c
diff --git
a/world_render.c
b/world_render.c
index 990a1abfcc3ed6e565e322f36d67307d6b87114e..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;
}