diff options
| author | Valentin Popov <valentin@popov.link> | 2026-12-03 17:14:49 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-12-03 17:14:49 +0300 |
| commit | 1776dd8007169ef4f04969f0a5edcc423b6d67bc (patch) | |
| tree | d6bf261f4ecf07ddb79026130448f5aa937d49a1 /apps/fparkan-game/src/main.rs | |
| parent | ca66e64b3995229ca7c8771b75ca26a60c3e344f (diff) | |
| download | fparkan-1776dd8007169ef4f04969f0a5edcc423b6d67bc.tar.xz fparkan-1776dd8007169ef4f04969f0a5edcc423b6d67bc.zip | |
feat(ui): restore cockpit status indicators
Diffstat (limited to 'apps/fparkan-game/src/main.rs')
| -rw-r--r-- | apps/fparkan-game/src/main.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/fparkan-game/src/main.rs b/apps/fparkan-game/src/main.rs index 35721de9..a38186ce 100644 --- a/apps/fparkan-game/src/main.rs +++ b/apps/fparkan-game/src/main.rs @@ -12,6 +12,7 @@ mod cockpit_geometry; mod cockpit_instrument; mod cockpit_radar_hud; mod cockpit_reticle; +mod cockpit_status_hud; mod cockpit_vertical_gauge; #[cfg(windows)] mod control_effects; @@ -9436,9 +9437,10 @@ impl StaticVulkanApp { fparkan_world::OriginalObjectId(vehicle.object_index as u32), ) == Some(vehicle.handle); if disembark || !live { - if let Some(hero) = - disembark_warbot(engine).map_err(|error| error.to_string())? - { + let hero = disembark_warbot(engine).map_err(|error| error.to_string())?; + self.overlay + .note_exit_result(control_clock_ms, disembark && live && hero.is_none()); + if let Some(hero) = hero { self.cockpit = Some(hero); self.boarded_hero_index = None; self.selected_contact = None; |
