mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Start sim if needed.
This used to be accidentally performed by the pause function. That's no longer done, so start if needed. Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2098.
This commit is contained in:
parent
8dddffb8b5
commit
2c041081c9
@ -54,12 +54,16 @@ class GameLoop:
|
||||
|
||||
def run_to_first_contact(self) -> None:
|
||||
self.pause()
|
||||
if not self.started:
|
||||
self.start()
|
||||
logging.info("Running sim to first contact")
|
||||
while not self.completed:
|
||||
self.tick(suppress_events=True)
|
||||
|
||||
def pause_and_generate_miz(self, output: Path) -> None:
|
||||
self.pause()
|
||||
if not self.started:
|
||||
self.start()
|
||||
self.sim.generate_miz(output)
|
||||
|
||||
def pause_and_debrief(self, state_path: Path, force_end: bool) -> Debriefing:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user