stop air sound while paused
authorhgn <hgodden00@gmail.com>
Tue, 19 Dec 2023 04:17:01 +0000 (04:17 +0000)
committerhgn <hgodden00@gmail.com>
Tue, 19 Dec 2023 04:17:01 +0000 (04:17 +0000)
player.c
player_walk.c

index 1d95c8b852e90ac00726d94df4dff9e0fa9586d7..bd929a5f94973c1e9923ef09c437ca58e2242081 100644 (file)
--- 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 );
 }
 
index 449b99e3a03bff9e0b63466123bcc2c5be4506c5..38429c7c531be3c6dabf9266a9d094df0886ae63 100644 (file)
@@ -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 ];