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