1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

Merge pull request #435 from metrostroi-repo/#370

Fix #370
This commit is contained in:
HellReach
2022-01-13 17:28:00 +03:00
committed by GitHub

View File

@@ -677,10 +677,10 @@ function TRAIN_SYSTEM:Think(dT)
----------------------------------------------------------------------------
if self.DriverValveDisconnectPrevious ~= Train.DriverValveDisconnect.Value then
self.DriverValveDisconnectPrevious = Train.DriverValveDisconnect.Value
if self.DriverValveDisconnectPrevious == 0 then
if self.DriverValveDisconnectPrevious == 0 and self.TrainLinePressure>1 then
self.DVDOffTimer = CurTime()
Train:PlayOnce("pneumo_disconnect2","cabin",0.9)
else
elseif self.TrainLinePressure>1 then
self.DVDOffTimer = nil
Train:PlayOnce("pneumo_disconnect1","cabin",0.9)
end