diff options
author | orwell96 <orwell@bleipb.de> | 2020-04-23 09:44:17 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2021-02-10 16:35:45 +0100 |
commit | b59b0d587d72f78c5923aa501038b93269bba271 (patch) | |
tree | 8fd43d94e77c178c8fefd4b2b5573f84d0e0d092 /advtrains_interlocking | |
parent | a78ff65b31f8f6eb65580cf1002bbc0c53ef345e (diff) | |
download | advtrains-b59b0d587d72f78c5923aa501038b93269bba271.tar.gz advtrains-b59b0d587d72f78c5923aa501038b93269bba271.tar.bz2 advtrains-b59b0d587d72f78c5923aa501038b93269bba271.zip |
Implement a LZB speed lookup table for the path and rewrite velocity controls
Diffstat (limited to 'advtrains_interlocking')
-rw-r--r-- | advtrains_interlocking/approach.lua | 8 |
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 |