From a519d5efefb4d846a9f65c6b9376fa245215a0f6 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 11:58:00 +0400 Subject: fix(ai): route capturers to authored building entrances --- crates/fparkan-runtime/src/clan_ai_events.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/fparkan-runtime/src/clan_ai_events.rs') diff --git a/crates/fparkan-runtime/src/clan_ai_events.rs b/crates/fparkan-runtime/src/clan_ai_events.rs index dc72048a..30ceb573 100644 --- a/crates/fparkan-runtime/src/clan_ai_events.rs +++ b/crates/fparkan-runtime/src/clan_ai_events.rs @@ -806,7 +806,7 @@ impl LoadedMissionState { let problem = problem.as_ref() .ok_or("Handler(15) capture requires a current problem")?; let approach = crate::clan_targeting::send_capturer( - &mut self.unit_patrol, world, &self.object_drafts, &self.mission_assets, unit, target_id, + &mut self.unit_patrol, world, &self.object_drafts, &self.mission_assets, &self.terrain, unit, target_id, ); if let Some(approach) = approach { self.clan_ai_events.capture_orders.push((OwnerId(clan as u16), problem.key, approach)); -- cgit v1.2.3