fix regression with gate flipping
[carveJwlIkooP6JGAAIwe30JlM.git] / world_entity.c
index 40d6d78a58acc7684fca56ee8495e35df4673320..88e0e7e1a240815bc38bde6606efa077f919d09d 100644 (file)
@@ -182,16 +182,8 @@ void world_gen_entities_init( world_instance *world )
       light->angle_sin_cos[1] = cosf( light->angle * 0.5f );
    }
 
-   /* gates */
-   for( u32 j=0; j<mdl_arrcount(&world->ent_gate); j ++ ){
-      ent_gate *gate = mdl_arritm( &world->ent_gate, j );
-
-      if( !(gate->flags & k_ent_gate_nonlocal) ) {
-         gate_transform_update( gate );
-      }
-   }
-      
-   vg_async_call( world_link_nonlocal_async, world, 0 );
+   vg_async_call( world_link_gates_async, world, 0 );
+   vg_async_stall();
 
    /* water */
    for( u32 j=0; j<mdl_arrcount(&world->ent_water); j++ ){