diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-02 13:16:58 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-02 13:16:58 +0300 |
| commit | 787279a1f514fbbaf09ca9dd6e5015bdce36635b (patch) | |
| tree | 6adce388ed0fe42fe1e95dc2af536ce584015107 /crates/fparkan-runtime/src/unit_patrol.rs | |
| parent | ad31192ab5d8c5f2b0d2d44b787d04c29cb49dc8 (diff) | |
| download | fparkan-787279a1f514fbbaf09ca9dd6e5015bdce36635b.tar.xz fparkan-787279a1f514fbbaf09ca9dd6e5015bdce36635b.zip | |
feat(ui): control a warbot from the strategic card
Diffstat (limited to 'crates/fparkan-runtime/src/unit_patrol.rs')
| -rw-r--r-- | crates/fparkan-runtime/src/unit_patrol.rs | 6 |
1 files changed, 5 insertions, 1 deletions
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 { |
