atmosphere: reorder gauges

This commit is contained in:
yuni 2024-11-28 03:32:05 +01:00
parent 5f1c15e614
commit bbbf9c839b

View file

@ -877,12 +877,12 @@ fn update_speedometer(
if let Ok(mut speed_text) = q_node_speed.get_single_mut() {
// Atmospheric conditions
let mut atmo = String::new();
if let Some(val) = settings.atmo_density {
atmo += format!("dens: {}g/m³\n", nature::readable_si(val*1000.0)).as_str();
}
if let Some(val) = settings.atmo_altitude {
atmo += format!("alt: {}m\n", nature::readable_si(val)).as_str();
}
if let Some(val) = settings.atmo_density {
atmo += format!("dens: {}g/m³\n", nature::readable_si(val*1000.0)).as_str();
}
if let Some(val) = settings.atmo_pressure {
atmo += format!("p: {}bar\n", nature::readable_si(val as f64)).as_str();
}