aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/lzb.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains_interlocking/lzb.lua')
-rw-r--r--advtrains_interlocking/lzb.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/advtrains_interlocking/lzb.lua b/advtrains_interlocking/lzb.lua
index 11871f1..51d597b 100644
--- a/advtrains_interlocking/lzb.lua
+++ b/advtrains_interlocking/lzb.lua
@@ -136,6 +136,7 @@ local function look_ahead(id, train)
pos = spos,
idx = trav,
spd = lspd,
+ sht = lzb.travsht,
})
end
end
@@ -165,6 +166,7 @@ local function apply_control(id, train)
if lzb.oncoming[i].idx < train.index-0.5 then
if not lzb.oncoming[i].npr then
train.speed_restriction = lzb.oncoming[i].spd
+ train.is_shunt = lzb.oncoming[i].sht
end
table.remove(lzb.oncoming, i)
else