From: hgn Date: Tue, 19 Dec 2023 04:17:01 +0000 (+0000) Subject: stop air sound while paused X-Git-Url: https://skaterift.com/git/?a=commitdiff_plain;h=64d773ba5c208685f5cf265cc3505e3898e03528;p=carveJwlIkooP6JGAAIwe30JlM.git stop air sound while paused --- diff --git a/player.c b/player.c index 1d95c8b..bd929a5 100644 --- a/player.c +++ b/player.c @@ -119,7 +119,7 @@ static void player__post_update(void){ player_subsystems[ localplayer.subsystem ]->post_update(); SDL_AtomicLock( &air_data.sl ); - air_data.speed = v3_length( localplayer.rb.v ); + air_data.speed = v3_length( localplayer.rb.v ) * vg.time_rate; SDL_AtomicUnlock( &air_data.sl ); } diff --git a/player_walk.c b/player_walk.c index 449b99e..38429c7 100644 --- a/player_walk.c +++ b/player_walk.c @@ -1037,7 +1037,6 @@ static void player__walk_pose( void *_animator, player_pose *pose ){ NULL, pose ); } else if( animator->activity == k_walk_activity_ipopoff ){ - if( animator->run > 0.2f ){ f32 t = 1.0f-vg_minf( animator->run-0.2f, 1.0f ), mask[ 32 ];