X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_skate.c;h=63315a80d6830889219717348ff47c5641d9ef96;hb=c0e4a67ba2f001179df6e2cde97370a946669c22;hp=522ea3010a3fd93cf909063e4f6be1397203c202;hpb=874c9d7e6ee2d826f9eb34518e8163283439c38e;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_skate.c b/player_skate.c index 522ea30..63315a8 100644 --- a/player_skate.c +++ b/player_skate.c @@ -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;