diff --git a/src/actor.rs b/src/actor.rs index 3d81575..3713c05 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -1156,8 +1156,10 @@ fn handle_atmosphere( let friction = dv * (1.0 - height).powf(16.0) * dt * 10.0; v.0 -= friction; + let pressure = nature::jupiter_altitude_to_pressure(distance); + if player.is_some() { - settings.atmo_pressure = Some(friction.length() as f32); + settings.atmo_pressure = Some(pressure as f32); settings.atmo_altitude = Some(height as f32); reset_player_gauges = false; }