X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_routes.h;h=66a4fa5c022bfd0154fc91a7f0f3086251b7cd18;hb=6b9993651343af73bd48e2213910bbaadb41edaf;hp=00dee4ea0c79d742a78ad3c023cce8d3f1ed7f65;hpb=e70b6d550d63af95cafd9ffdee1918faf02a6892;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_routes.h b/world_routes.h index 00dee4e..66a4fa5 100644 --- a/world_routes.h +++ b/world_routes.h @@ -134,10 +134,19 @@ VG_STATIC void world_routes_time_lap( world_instance *world, ent_route *route ) VG_STATIC void world_routes_activate_entry_gate( world_instance *world, ent_gate *rg ) { - ent_gate *dest = mdl_arritm( &world->ent_gate, rg->target ); - world_global.last_use = world_global.time; + /* disable all routes and leave the world */ + if( rg->type == k_gate_type_nonlocel ){ + for( u32 i=0; ient_route); i++ ){ + ent_route *route = mdl_arritm( &world->ent_route, i ); + route->active_checkpoint = 0xffff; + } + return; + } + + ent_gate *dest = mdl_arritm( &world->ent_gate, rg->target ); + for( u32 i=0; ient_route); i++ ){ ent_route *route = mdl_arritm( &world->ent_route, i );