X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player.c;h=07e5f306ac7f3e6163cf694f9e22bd6190cd8026;hb=e311bbe2fa903a7e2a922f202f389b799193195d;hp=3ba64eb0f38881808be33c5c0311665423bce99d;hpb=6e96ba64e805ea8a39ca46171e28426c6bc86ab6;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player.c b/player.c index 3ba64eb..07e5f30 100644 --- a/player.c +++ b/player.c @@ -123,12 +123,11 @@ static void player__pass_gate( u32 id ){ localplayer.boundary_hash ^= NETMSG_GATE_BOUNDARY_BIT; localplayer.boundary_hash &= ~NETMSG_BOUNDARY_MASK; localplayer.boundary_hash |= index; - + ent_gate *gate = mdl_arritm( &world->ent_gate, mdl_entity_id_id(id) ); world_routes_fracture( world, gate, localplayer.rb.co, localplayer.rb.v ); localplayer.gate_waiting = gate; - world_routes_activate_entry_gate( world_current_instance(), gate ); struct player_cam_controller *cc = &localplayer.cam_control; m4x3_mulv( gate->transport, cc->tpv_lpf, cc->tpv_lpf ); @@ -148,6 +147,8 @@ static void player__pass_gate( u32 id ){ world_static.active_instance = gate->target; player__clean_refs(); } + else + world_routes_activate_entry_gate( world, gate ); v3f v0; v3_angles_vector( localplayer.angles, v0 ); @@ -342,10 +343,13 @@ static void player__clear_sfx_buffer(void){ /* implementation */ #include "player_common.c" + #include "player_walk.c" #include "player_skate.c" #include "player_dead.c" #include "player_drive.c" +#include "player_basic_info.c" + #include "player_render.c" #include "player_ragdoll.c" #include "player_replay.c"