aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains_interlocking')
-rw-r--r--advtrains_interlocking/approach.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/advtrains_interlocking/approach.lua b/advtrains_interlocking/approach.lua
index 7bb9fc9..6157a17 100644
--- a/advtrains_interlocking/approach.lua
+++ b/advtrains_interlocking/approach.lua
@@ -111,11 +111,11 @@ advtrains.tnc_register_on_approach(function(pos, id, train, index, lzbdata)
local udata = {signal_pos = spos}
local callback = get_over_function(lspd, travsht)
- advtrains.lzb_add_checkpoint(train, index, lspd, callback, udata)
+ lzbdata.travsht = travsht
+ lzbdata.travspd = travspd
+ lzbdata.travwspd = travwspd
+ advtrains.lzb_add_checkpoint(train, index, lspd, callback, lzbdata)
end
- lzbdata.travsht = travsht
- lzbdata.travspd = travspd
- lzbdata.travwspd = travwspd
end)
-- Set the ars_disable flag to the value passed