mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
Fixed white bort lamp on E in KVL mode
This commit is contained in:
@@ -335,8 +335,8 @@ function TRAIN_SYSTEM:SolveAllInternalCircuits(Train)
|
|||||||
local BD = 1-Train.BD.Value
|
local BD = 1-Train.BD.Value
|
||||||
if isKVL then
|
if isKVL then
|
||||||
Train:WriteTrainWire(15,T[-15]*Train.RD.Value)
|
Train:WriteTrainWire(15,T[-15]*Train.RD.Value)
|
||||||
Panel.SD = T[-15]*T[15]
|
|
||||||
Train.RD:TriggerInput("Set",BO*Train.BD.Value)
|
Train.RD:TriggerInput("Set",BO*Train.BD.Value)
|
||||||
|
Panel.SD = BO*BD
|
||||||
else
|
else
|
||||||
Train:WriteTrainWire(15,BD*(1-Train.KU11.Value))
|
Train:WriteTrainWire(15,BD*(1-Train.KU11.Value))
|
||||||
Panel.SD = (S["D1"]+BO*Train.KU11.Value)*(T[15]*(1-Train.KU11.Value)+BD)
|
Panel.SD = (S["D1"]+BO*Train.KU11.Value)*(T[15]*(1-Train.KU11.Value)+BD)
|
||||||
|
|||||||
Reference in New Issue
Block a user