From bbbf9c839b5bbc57db5bd14c2208c4f1f45a36dc Mon Sep 17 00:00:00 2001 From: yuni Date: Thu, 28 Nov 2024 03:32:05 +0100 Subject: [PATCH] atmosphere: reorder gauges --- src/hud.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hud.rs b/src/hud.rs index d23a38f..e16411d 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -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(); }