From dfbdef7d4d1d295ee962dd8aab754ce6be902f8d Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 26 Nov 2026 12:16:16 +0400 Subject: fix(ai): follow capture passages through building doors A stock Two Fortresses run now takes the generator after the capturer descends its authored hallway. Symmetric Res17 door links drive the CTLD animation and unsupported routes retain explicit coverage. Checked the approach and descent in the game window with Vulkan validation and verified the owner transfer in a licensed test. --- apps/fparkan-game/src/main.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'apps/fparkan-game/src') diff --git a/apps/fparkan-game/src/main.rs b/apps/fparkan-game/src/main.rs index 4f90b9eb..6c33404a 100644 --- a/apps/fparkan-game/src/main.rs +++ b/apps/fparkan-game/src/main.rs @@ -7411,6 +7411,19 @@ fn update_gameplay_animation_pose_buffers( } } } + if component_index == 0 && fparkan_runtime::has_proximity_doors(&instance.control) { + if let Some((root, engine)) = motion.and_then(|(roots, _, engine)| { + Some((roots.get(object_index)?.as_ref()?, engine)) + }) { + fparkan_runtime::sample_capture_doors( + engine, + root.handle, + &instance.control, + &mut instance.door_blends, + &mut node_times, + ); + } + } let walking = motion.is_some_and(|(roots, snapshot, engine)| { roots .get(object_index) -- cgit v1.2.3