X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_routes.c;h=44d055b1686409fa68015036d5993f194ce29028;hb=6ab4435fb19beb6af6c52691793d5ca17a120f69;hp=d2816d111ba4a4a45ddb4dbb26224911b734ac01;hpb=302b008f2298f54a95a5c5e0b46f2f573b49bb8e;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_routes.c b/world_routes.c index d2816d1..44d055b 100644 --- a/world_routes.c +++ b/world_routes.c @@ -133,7 +133,7 @@ VG_STATIC void world_routes_activate_entry_gate( world_instance *world, world_static.last_use = world_static.time; /* disable all routes and leave the world */ - if( rg->type == k_gate_type_nonlocel ){ + if( rg->flags & k_ent_gate_nonlocal ){ for( u32 i=0; ient_route); i++ ){ ent_route *route = mdl_arritm( &world->ent_route, i ); route->active_checkpoint = 0xffff; @@ -912,7 +912,8 @@ VG_STATIC void world_gen_routes_ent_init(void) } } - if( gate->type == k_gate_type_teleport ){ + if( (gate->flags & k_ent_gate_linked) & + !(gate->flags & k_ent_gate_nonlocal) ){ gate = mdl_arritm(&world->ent_gate, gate->target ); for( u32 k=0; k<4; k++ ){