X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_gate.h;fp=world_gate.h;h=b409c51d0d482f65ced1193aa8108a88ea8ecaf3;hb=a8ba9cc44e1ae9aeca62fb579a3105c625e59133;hp=469f73695e7da46489e08a2f3b6dc8a93e67b306;hpb=0581570de424d39cd3117cdab0845dc2bd95c374;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_gate.h b/world_gate.h index 469f736..b409c51 100644 --- a/world_gate.h +++ b/world_gate.h @@ -5,6 +5,7 @@ #ifndef WORLD_GATE_H #define WORLD_GATE_H +#include "skaterift.h" #include "common.h" #include "model.h" #include "entity.h" @@ -229,6 +230,13 @@ VG_STATIC ent_gate *world_intersect_gates( world_instance *world, gate->type == k_gate_type_nonlocal_unlinked ) continue; + if( gate->type == k_gate_type_nonlocel ){ + if( skaterift.async_op == k_async_op_world_loading || + skaterift.async_op == k_async_op_world_preloading ){ + continue; + } + } + if( gate_intersect( gate, pos, last ) ){ return gate; }