aboutsummaryrefslogtreecommitdiff
path: root/advtrains/wagons.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains/wagons.lua')
-rw-r--r--advtrains/wagons.lua6
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]"