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

@@ -433,7 +433,7 @@ function TRAIN_SYSTEM:Play(dep,not_last)
self:AnnQueue(message)
--local stbl = Metrostroi.ASNPSetup[self.Train:GetNW2Int("Announcer",1)][self.Line][self.Station]
if self.LastStation > 0 and not dep 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 dep 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]