From 5aa815a803612f14c26d293e2762b3175e838370 Mon Sep 17 00:00:00 2001 From: yuni Date: Sun, 22 Sep 2024 06:42:44 +0200 Subject: [PATCH] show radioactivity icon on reactor overload --- src/hud.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hud.rs b/src/hud.rs index 5e20d8a..29a42fc 100644 --- a/src/hud.rs +++ b/src/hud.rs @@ -703,7 +703,9 @@ fn update_dashboard( Dashboard::RotationStabiliser => !settings.rotation_stabilizer_active, Dashboard::CruiseControl => settings.cruise_control_active, Dashboard::Radioactivity => { - if let Some(pos_jupiter) = id2pos.0.get(cmd::ID_JUPITER) { + if settings.reactor_state == 2 { + true + } else if let Some(pos_jupiter) = id2pos.0.get(cmd::ID_JUPITER) { pos_jupiter.distance(pos.0) < 140_000_000.0 } else { false