From 372e829b467056e2d33aab577911c5e92153cd9a Mon Sep 17 00:00:00 2001 From: alexandr_sizov Date: Fri, 7 Jan 2022 15:04:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=BF=D0=B8=D1=82=D0=B0=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=BA=D0=BD=D0=BE=D0=BF=D0=BE=D0=BA=20=D0=B4=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=B9=20=D1=81=206=20=D0=BF=D1=80=D0=BE=D0=B2=D0=BE?= =?UTF-8?q?=D0=B4=D0=B0=20=D0=BF=D1=80=D0=B8=20=D0=BE=D0=BF=D1=83=D1=89?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=D0=BC=20=D0=92=D0=A3=D0=94=20=D0=BD=D0=B0=20?= =?UTF-8?q?717-=D0=9C=D0=A1=D0=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/metrostroi/systems/sys_81_717_electric.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lua/metrostroi/systems/sys_81_717_electric.lua b/lua/metrostroi/systems/sys_81_717_electric.lua index c0ce62b..0608ec5 100644 --- a/lua/metrostroi/systems/sys_81_717_electric.lua +++ b/lua/metrostroi/systems/sys_81_717_electric.lua @@ -735,9 +735,10 @@ function TRAIN_SYSTEM:SolveAllInternalCircuits(Train,dT,firstIter) S[31] = S[31]*(1-Train.VUD1.Value) S[32] = S[32]*(1-Train.VUD1.Value) else - Train:WriteTrainWire(16,S["D1"]*(Train.VUD1.Value*Train.VUD2.Value)) - S[31] = S["D1"]*(1-Train.DoorSelect.Value) - S[32] = S["D1"]*Train.DoorSelect.Value + S["D16"] = Train.VUD1.Value*Train.VUD2.Value + S[31] = (S["D1"]+T[16]*S["D16"])*(1-Train.DoorSelect.Value) + S[32] = (S["D1"]+T[16]*S["D16"])*Train.DoorSelect.Value + Train:WriteTrainWire(16,S["D1"]*S["D16"]) end Train:WriteTrainWire(12,S["D1"]*Train.KRZD.Value) Panel.DoorsLeft = S[31]