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

Fix have_inrerchange (#346)

This commit is contained in:
Hellss
2021-08-10 00:54:54 +03:00
committed by GitHub
parent 54e10bc40b
commit 41f81c0ad5
7 changed files with 47 additions and 33 deletions

View File

@@ -257,7 +257,7 @@ function TRAIN_SYSTEM:Play()
if lastst and not stbl.ignorelast then self:AnnQueue(-1) end
self:AnnQueue(message)
--local stbl = self.CurrentTable[self.Train:GetNW2Int("Announcer",1)][self.Line][self.Station]
if self.LastStation > 0 and not self.Arrived and self.Station ~= last and tbl[last].not_last and (stbl.have_inrerchange or math.abs(last-self.Station) <= 3) then
if self.LastStation > 0 and not self.Arrived and self.Station ~= last and tbl[last].not_last and (stbl.have_interchange or math.abs(last-self.Station) <= 3) then
local ltbl = tbl[last]
if stbl.not_last_c then
local patt = stbl.not_last_c[path]