diff options
author | orwell96 <orwell@bleipb.de> | 2020-04-28 16:01:35 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2021-02-10 16:36:24 +0100 |
commit | 8660794ef8392f08fa5be46715abb5dcbd96ca5d (patch) | |
tree | f077c3f12f901ed41061ee2672c62d53d5d2c27e /advtrains/wagons.lua | |
parent | 5c2534cc35bc0fc47b53c8a992e3e71b15a60ec4 (diff) | |
download | advtrains-8660794ef8392f08fa5be46715abb5dcbd96ca5d.tar.gz advtrains-8660794ef8392f08fa5be46715abb5dcbd96ca5d.tar.bz2 advtrains-8660794ef8392f08fa5be46715abb5dcbd96ca5d.zip |
Fix lots of things around new LZB
Diffstat (limited to 'advtrains/wagons.lua')
-rw-r--r-- | advtrains/wagons.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua index 66d083e..c5e1e17 100644 --- a/advtrains/wagons.lua +++ b/advtrains/wagons.lua @@ -986,10 +986,10 @@ function wagon:show_bordcom(pname) -- Interlocking functionality: If the interlocking module is loaded, you can set the signal aspect -- from inside the train - if advtrains.interlocking and train.lzb and #train.lzb.oncoming > 0 then + if advtrains.interlocking and train.lzb and #train.lzb.checkpoints > 0 then local i=1 - while train.lzb.oncoming[i] do - local oci = train.lzb.oncoming[i] --TODO repair this + while train.lzb.checkpoints[i] do + local oci = train.lzb.checkpoints[i] if oci.udata and oci.udata.signal_pos then if advtrains.interlocking.db.get_sigd_for_signal(oci.udata.signal_pos) then form = form .. "button[4.5,8;5,1;ilrs;Remote Routesetting]" |