mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
* resolve #159: fix disabling "RNT" on change Freq to 275Hz * refactor * Fix disabling "RNT" on change Freq to 275Hz
This commit is contained in:
@@ -180,9 +180,9 @@ function TRAIN_SYSTEM:Think(dT)
|
||||
self.BR1 = self.KB>0 and (self.BR1 or self.ROCh) and not self.BR2
|
||||
self.KSR = not self.OnTimer and ((self.KSR or self.RNT) and self.RSS or self.R2O and (self.BR1 and self.ROCh or self.BR2))
|
||||
self.OldF5 = self.F5>0
|
||||
|
||||
self.RNT = (self.BR1 or self.BR2) or self.RNT and (self.KSR or KRT and (not self.RUVD or self.R2O))
|
||||
self.RUVD = (self.RUVD or self.KRH==0) and self.KSR
|
||||
self.RNT = (self.BR1 or self.BR2) or self.RNT and (self.KSR or (KRT or speed < 0.1) and (not self.RUVD or self.R2O))
|
||||
|
||||
if not self.RUVD--[[ and self.ROCh--]] then
|
||||
if not self.BrakeTimer then self.BrakeTimer = CurTime() end
|
||||
elseif self.BrakeTimer then
|
||||
|
||||
Reference in New Issue
Block a user