From 5768f6af6aff2e47191b9e7ee93cc3837a9219fb Mon Sep 17 00:00:00 2001 From: kosmik641 Date: Wed, 8 Oct 2025 03:28:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B8=D1=80=D0=B8=D1=81=D1=82=D0=BE?= =?UTF-8?q?=D1=80=2081-717=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=20=D1=80=D0=B0=D1=81=D1=87=D0=B5=D1=82=20=D0=BA?= =?UTF-8?q?=D0=BE=D1=80=D0=BD=D1=8F=20=D0=B8=D0=B7=20=D0=BE=D1=82=D1=80?= =?UTF-8?q?=D0=B8=D1=86=D0=B0=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=20=D1=87=D0=B8=D1=81=D0=BB=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/metrostroi/systems/sys_81_717_electric.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/metrostroi/systems/sys_81_717_electric.lua b/lua/metrostroi/systems/sys_81_717_electric.lua index 0ad76c4..f0fd45f 100644 --- a/lua/metrostroi/systems/sys_81_717_electric.lua +++ b/lua/metrostroi/systems/sys_81_717_electric.lua @@ -1130,7 +1130,7 @@ function TRAIN_SYSTEM:SolveThyristorController(Train, dT) self.ThyristorState = 0.92 if I > 162 then--I > T * 0.9 then self.PrepareElectric = false - self.ThyristorState = (1 - math.max(0, math.min(1, ((Train.Engines.Speed - 50) / 32)) ^ 0.5)) * 0.9 + self.ThyristorState = (1 - math.max(0, math.min(1, (math.max(0, Train.Engines.Speed - 50) / 32)) ^ 0.5)) * 0.9 end else self.ThyristorState = math.max(0, math.min(1, self.ThyristorState + dC / rnd * dT))