From 64d773ba5c208685f5cf265cc3505e3898e03528 Mon Sep 17 00:00:00 2001 From: hgn Date: Tue, 19 Dec 2023 04:17:01 +0000 Subject: [PATCH] stop air sound while paused --- player.c | 2 +- player_walk.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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 ]; -- 2.25.1