From 98569dc5e8ee01b19ee82852a807f6a2b911dae4 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 14:59:29 +0400 Subject: feat(ui): watch a warbot on autopilot from its cockpit --- crates/fparkan-runtime/src/unit_patrol.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crates/fparkan-runtime/src/unit_patrol.rs') diff --git a/crates/fparkan-runtime/src/unit_patrol.rs b/crates/fparkan-runtime/src/unit_patrol.rs index 594a4b7f..c25b309f 100644 --- a/crates/fparkan-runtime/src/unit_patrol.rs +++ b/crates/fparkan-runtime/src/unit_patrol.rs @@ -582,7 +582,9 @@ impl UnitPatrol { for unit in &mut state.units { if self.is_leaving_factory(unit.handle) || mission.boarding.is_some_and(|control| { - control.remote.is_some() && control.cockpit.handle == unit.handle + control.remote.is_some() + && control.controls_chassis() + && control.cockpit.handle == unit.handle }) { continue; -- cgit v1.2.3