re-add non-local gates
[carveJwlIkooP6JGAAIwe30JlM.git] / player_skate.c
index 522ea3010a3fd93cf909063e4f6be1397203c202..63315a80d6830889219717348ff47c5641d9ef96 100644 (file)
@@ -483,6 +483,9 @@ static void player__approximate_best_trajectory(void){
                m4x3_mulv( gate->transport, co1, co1 );
                m3x3_mulv( gate->transport, launch_v, launch_v);
                m4x3_mulv( gate->transport, launch_co, launch_co );
+
+               if( gate->flags & k_ent_gate_nonlocal )
+                  trace_world = &world_static.instances[ gate->target ];
             }
          }
 
@@ -2025,11 +2028,9 @@ static void player__skate_update(void){
 
    if( world->water.enabled ){
       if( localplayer.rb.co[1]+0.25f < world->water.height ){
-#if 0
          player__networked_sfx( k_player_subsystem_walk, 32, 
                                 k_player_walk_soundeffect_splash,
                                 localplayer.rb.co, 1.0f );
-#endif
          player__skate_kill_audio();
          player__dead_transition();
          return;