aboutsummaryrefslogtreecommitdiff
path: root/crates/fparkan-runtime/src/cockpit_indicators.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/fparkan-runtime/src/cockpit_indicators.rs')
-rw-r--r--crates/fparkan-runtime/src/cockpit_indicators.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/fparkan-runtime/src/cockpit_indicators.rs b/crates/fparkan-runtime/src/cockpit_indicators.rs
index e51e00bb..651949dd 100644
--- a/crates/fparkan-runtime/src/cockpit_indicators.rs
+++ b/crates/fparkan-runtime/src/cockpit_indicators.rs
@@ -1,7 +1,7 @@
//! Control device flags and control mode shown at the base of the cockpit dial.
use crate::{
- repair_system::is_self_repair_device, Engine, MissionControlDeviceTableStatus,
+ camouflage, repair_system::is_self_repair_device, Engine, MissionControlDeviceTableStatus,
RemoteWarbotControl, StartingCockpit,
};
@@ -40,8 +40,8 @@ pub fn cockpit_indicators(engine: &Engine, cockpit: StartingCockpit) -> Option<C
.is_some_and(|device| device.native_word_50_bits == Some(0x20));
let camouflage = devices
.iter()
- .find(|device| device.key == 0 && device.descriptor.tag == 10 && device.factory_tag == 10)
- .is_some_and(|device| device.native_word_50_bits == Some(0x1000));
+ .find(|device| camouflage::is_controlled_device(device))
+ .is_some_and(camouflage::is_enabled);
Some(CockpitIndicators {
self_repair,
camouflage,