From 787279a1f514fbbaf09ca9dd6e5015bdce36635b Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 14:16:58 +0400 Subject: feat(ui): control a warbot from the strategic card --- crates/fparkan-runtime/src/unit_patrol.rs | 6 +++++- 1 file changed, 5 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 6a230135..1d83eaa8 100644 --- a/crates/fparkan-runtime/src/unit_patrol.rs +++ b/crates/fparkan-runtime/src/unit_patrol.rs @@ -580,7 +580,11 @@ impl UnitPatrol { } } for unit in &mut state.units { - if self.is_leaving_factory(unit.handle) { + if self.is_leaving_factory(unit.handle) + || mission + .boarding + .is_some_and(|control| control.remote && control.cockpit.handle == unit.handle) + { continue; } let Ok(before) = transform_state(world, unit.handle) else { -- cgit v1.2.3