From 099e48fa775b849654d1102a6c1d9e84ded7e1f4 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 3 Dec 2026 19:00:18 +0400 Subject: feat(game): cycle warbot cockpit control modes --- crates/fparkan-runtime/src/cockpit_indicators.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'crates/fparkan-runtime/src/cockpit_indicators.rs') diff --git a/crates/fparkan-runtime/src/cockpit_indicators.rs b/crates/fparkan-runtime/src/cockpit_indicators.rs index 651949dd..b3016a3e 100644 --- a/crates/fparkan-runtime/src/cockpit_indicators.rs +++ b/crates/fparkan-runtime/src/cockpit_indicators.rs @@ -18,10 +18,9 @@ pub struct CockpitIndicators { pub fn cockpit_indicators(engine: &Engine, cockpit: StartingCockpit) -> Option { let mission = engine.loaded.as_ref()?; let (onsite, control) = match mission.boarding { - Some(board) if board.cockpit.handle == cockpit.handle => ( - board.remote.is_none(), - board.remote.unwrap_or(RemoteWarbotControl::Manual), - ), + Some(board) if board.cockpit.handle == cockpit.handle => { + (!board.remote, board.control_mode) + } None if mission.local_hero == Some(cockpit.handle) => (true, RemoteWarbotControl::Manual), _ => return None, }; -- cgit v1.2.3