diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-03 17:39:24 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-03 17:39:24 +0300 |
| commit | 4b9277258224ab846b84cafe1d6a3b91e29a05c5 (patch) | |
| tree | 4f830c515d6a202d87122f95741235be4e30e71d /crates/fparkan-runtime/src/cockpit_indicators.rs | |
| parent | c85b69296f5349a728e28e308c7d71b367dc6ac1 (diff) | |
| download | fparkan-4b9277258224ab846b84cafe1d6a3b91e29a05c5.tar.xz fparkan-4b9277258224ab846b84cafe1d6a3b91e29a05c5.zip | |
feat(game): enable powered camouflage in the cockpit
Diffstat (limited to 'crates/fparkan-runtime/src/cockpit_indicators.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/cockpit_indicators.rs | 6 |
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, |
