aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2020-06-05 13:35:52 +0200
committerorwell96 <orwell@bleipb.de>2021-02-10 16:36:24 +0100
commita3247dea289c3cb487a6d2d730f3fe67bf49f27b (patch)
treefc74eb5d63c03e695ad7b871b4ec34a0f7e1cd34 /advtrains
parent227a4aaeacff3f1b5c1d42ab6ab729874f652d0b (diff)
downloadadvtrains-a3247dea289c3cb487a6d2d730f3fe67bf49f27b.tar.gz
advtrains-a3247dea289c3cb487a6d2d730f3fe67bf49f27b.tar.bz2
advtrains-a3247dea289c3cb487a6d2d730f3fe67bf49f27b.zip
Fix HUD position and Remote Routesetting button
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/wagons.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua
index c5e1e17..4e7fb26 100644
--- a/advtrains/wagons.lua
+++ b/advtrains/wagons.lua
@@ -1074,10 +1074,10 @@ function wagon:handle_bordcom_fields(pname, formname, fields)
-- Interlocking functionality: If the interlocking module is loaded, you can set the signal aspect
-- from inside the train
if advtrains.interlocking then
- if fields.ilrs and train.lzb and #train.lzb.oncoming > 0 then
+ if fields.ilrs and train.lzb and #train.lzb.checkpoints > 0 then
local i=1
- while train.lzb.oncoming[i] do
- local oci = train.lzb.oncoming[i]
+ while train.lzb.checkpoints[i] do
+ local oci = train.lzb.checkpoints[i]
if oci.udata and oci.udata.signal_pos then
local sigd = advtrains.interlocking.db.get_sigd_for_signal(oci.udata.signal_pos)
if sigd then