Don't initialize the simulation on game update.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1844.
This commit is contained in:
Dan Albert 2022-03-19 13:51:26 -07:00
parent 47d54fd295
commit 78c3da99f7

View File

@ -48,7 +48,7 @@ class GameLoop:
self.timer.stop()
if simulation_speed != self.timer.simulation_speed:
logging.info(f"Speed changed to {simulation_speed}")
if not self.started:
if not self.started and simulation_speed is not SimSpeedSetting.PAUSED:
self.start()
self.timer.set_speed(simulation_speed)