From 55c4aa3ad801b0599fab9e4f669898d02f38c627 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Sat, 14 Nov 2026 19:48:15 +0400 Subject: fix(player): read flight capability from chassis profile --- crates/fparkan-runtime/src/boarding.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'crates/fparkan-runtime/src/boarding.rs') diff --git a/crates/fparkan-runtime/src/boarding.rs b/crates/fparkan-runtime/src/boarding.rs index ec786a21..9a1479f8 100644 --- a/crates/fparkan-runtime/src/boarding.rs +++ b/crates/fparkan-runtime/src/boarding.rs @@ -13,6 +13,7 @@ pub(super) const WARBOT_CLASS: u32 = 0x0100_8000; pub(super) struct Boarding { pub(super) cockpit: StartingCockpit, pub(super) hero: StartingCockpit, + pub(super) can_fly: bool, } /// The vehicle cockpit while the player is aboard. @@ -83,6 +84,7 @@ pub fn board_friendly_warbot(engine: &mut Engine) -> Result Result Result, let Some(Boarding { cockpit: vehicle, hero, + .. }) = mission.boarding else { return Ok(None); -- cgit v1.2.3