aboutsummaryrefslogtreecommitdiff
path: root/apps/fparkan-game/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'apps/fparkan-game/src/main.rs')
-rw-r--r--apps/fparkan-game/src/main.rs8
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;