/*
* Applies gate transport to a player_interface
*/
-static void player__pass_gate( ent_gate *gate ){
- world_routes_fracture( world_current_instance(), gate,
- localplayer.rb.co, localplayer.rb.v );
+static void player__pass_gate( u32 id ){
+ world_instance *world = world_current_instance();
+
+ /* update boundary hash (network animation) */
+ u16 index = mdl_entity_id_id(id) & ~NETMSG_BOUNDARY_MASK;
+ 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 );
if( player_subsystems[ localplayer.subsystem ]->reset )
player_subsystems[ localplayer.subsystem ]->reset( rp );
+
+ localplayer.boundary_hash ^= NETMSG_BOUNDARY_BIT;
}