wind rushing sound
[carveJwlIkooP6JGAAIwe30JlM.git] / player.c
index 2e4bb6fb02ca9c822479759513ceebb705fc2b4c..1d95c8b852e90ac00726d94df4dff9e0fa9586d7 100644 (file)
--- a/player.c
+++ b/player.c
@@ -117,6 +117,10 @@ static void player__update(void){
 static void player__post_update(void){
    if( player_subsystems[ localplayer.subsystem ]->post_update )
       player_subsystems[ localplayer.subsystem ]->post_update();
+
+   SDL_AtomicLock( &air_data.sl );
+   air_data.speed = v3_length( localplayer.rb.v );
+   SDL_AtomicUnlock( &air_data.sl );
 }
 
 /*