display actual pressure in pressure gauge
This commit is contained in:
parent
c206fa2684
commit
9cef15f49e
|
@ -1156,8 +1156,10 @@ fn handle_atmosphere(
|
||||||
let friction = dv * (1.0 - height).powf(16.0) * dt * 10.0;
|
let friction = dv * (1.0 - height).powf(16.0) * dt * 10.0;
|
||||||
v.0 -= friction;
|
v.0 -= friction;
|
||||||
|
|
||||||
|
let pressure = nature::jupiter_altitude_to_pressure(distance);
|
||||||
|
|
||||||
if player.is_some() {
|
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);
|
settings.atmo_altitude = Some(height as f32);
|
||||||
reset_player_gauges = false;
|
reset_player_gauges = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue