diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-03 18:00:18 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-03 18:00:18 +0300 |
| commit | 099e48fa775b849654d1102a6c1d9e84ded7e1f4 (patch) | |
| tree | 25864aa84bdb465d0ca52f5d28c5a1b20a23e041 /crates/fparkan-runtime/src/cockpit_indicators.rs | |
| parent | 4b9277258224ab846b84cafe1d6a3b91e29a05c5 (diff) | |
| download | fparkan-099e48fa775b849654d1102a6c1d9e84ded7e1f4.tar.xz fparkan-099e48fa775b849654d1102a6c1d9e84ded7e1f4.zip | |
feat(game): cycle warbot cockpit control modes
Diffstat (limited to 'crates/fparkan-runtime/src/cockpit_indicators.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/cockpit_indicators.rs | 7 |
1 files changed, 3 insertions, 4 deletions
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<CockpitIndicators> { 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, }; |
