Fix remote routesetting
This commit is contained in:
parent
ea33ad9de0
commit
b56cda8695
|
@ -172,7 +172,7 @@ function advtrains.lzb_add_checkpoint(train, index, speed, callback, udata)
|
|||
idx = index,
|
||||
spd = speed,
|
||||
fun = callback,
|
||||
data = udata,
|
||||
udata = udata,
|
||||
})
|
||||
end
|
||||
|
||||
|
|
|
@ -927,8 +927,8 @@ function wagon:handle_bordcom_fields(pname, formname, fields)
|
|||
local i=1
|
||||
while train.lzb.oncoming[i] do
|
||||
local oci = train.lzb.oncoming[i]
|
||||
if oci.pos then
|
||||
local sigd = advtrains.interlocking.db.get_sigd_for_signal(oci.pos)
|
||||
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
|
||||
advtrains.interlocking.show_signalling_form(sigd, pname)
|
||||
return
|
||||
|
|
|
@ -105,7 +105,7 @@ 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)
|
||||
advtrains.lzb_add_checkpoint(train, index, lspd, callback, udata)
|
||||
end
|
||||
lzbdata.travsht = travsht
|
||||
lzbdata.travspd = travspd
|
||||
|
|
Loading…
Reference in New Issue