display actual pressure in pressure gauge

This commit is contained in:
yuni 2024-11-27 22:38:34 +01:00
parent c206fa2684
commit 9cef15f49e

View file

@ -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;
}