From 05da53f0344416a5f14211a73f1f48d72c88b954 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 2 Dec 2026 14:38:56 +0400 Subject: feat(ui): drive a strategic warbot with an automatic gunner --- crates/fparkan-runtime/src/unit_patrol.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (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 1d83eaa8..594a4b7f 100644 --- a/crates/fparkan-runtime/src/unit_patrol.rs +++ b/crates/fparkan-runtime/src/unit_patrol.rs @@ -581,9 +581,9 @@ impl UnitPatrol { } for unit in &mut state.units { if self.is_leaving_factory(unit.handle) - || mission - .boarding - .is_some_and(|control| control.remote && control.cockpit.handle == unit.handle) + || mission.boarding.is_some_and(|control| { + control.remote.is_some() && control.cockpit.handle == unit.handle + }) { continue; } -- cgit v1.2.3