From 78c3da99f76abbde63b5138fea54ed9fb5a20d84 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Sat, 19 Mar 2022 13:51:26 -0700 Subject: [PATCH] Don't initialize the simulation on game update. Fixes https://github.com/dcs-liberation/dcs_liberation/issues/1844. --- game/sim/gameloop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/sim/gameloop.py b/game/sim/gameloop.py index 7d965800..2f0cfa1f 100644 --- a/game/sim/gameloop.py +++ b/game/sim/gameloop.py @@ -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)