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; i<mdl_arrcount(&world->ent_route); i++ ){
ent_route *route = mdl_arritm( &world->ent_route, i );
route->active_checkpoint = 0xffff;
}
}
- 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++ ){