From c63fadd7c2aa0e0d9f81f65aa88ef9fe905e76e3 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Wed, 25 Nov 2026 20:47:00 +0400 Subject: fix(ai): age script deadlines while the world is paused Record paused wall time separately from simulation time. After resuming, Mission and clan AI check their expired deadlines once, then schedule the next interval without replaying missed cycles. Move application pause handling into its own module and retain frozen world, animation and audio. Live ai.dll timer calls confirm that Mission runs before the paused world clock refreshes and the next AI callback uses an already expired deadline. Record the unresolved AutoDemo sphere and first-projectile boundaries. Validation: workspace fmt/check/tests, release build, licensed stock-clock pause test, all 29 missions at --sim-report 900 without script stops, and a stock mission-28 window with a 33-second pause and unchanged world time. Full AI chronology and minimized-window timing remain open. --- crates/fparkan-runtime/src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/fparkan-runtime/src/lib.rs') diff --git a/crates/fparkan-runtime/src/lib.rs b/crates/fparkan-runtime/src/lib.rs index 111633a9..accf0716 100644 --- a/crates/fparkan-runtime/src/lib.rs +++ b/crates/fparkan-runtime/src/lib.rs @@ -51,6 +51,7 @@ mod clan_area_strength; mod clan_build_limits; mod clan_building_queries; mod clan_clock; +pub use clan_clock::note_mission_pause_elapsed; mod clan_combat_groups; mod clan_combat_strength; mod clan_mining; -- cgit v1.2.3