Fix small bug in routeui and make another message log-only
parent
a34c2f4053
commit
7c60b8ffd1
|
@ -190,7 +190,7 @@ end
|
|||
function o.get_occupations(train, index)
|
||||
local ppos, ontrack = advtrains.path_get(train, index)
|
||||
if not ontrack then
|
||||
atwarn("Train",train.id,"get_occupations requested off-track",index)
|
||||
atlog("Train",train.id,"get_occupations requested off-track",index)
|
||||
return {}, ppos
|
||||
end
|
||||
local pos = advtrains.round_vector_floor_y(ppos)
|
||||
|
|
|
@ -119,7 +119,7 @@ function atil.show_route_edit_form(pname, sigd, routeid)
|
|||
end
|
||||
if c_sigd then
|
||||
local e_tcbs = ildb.get_tcbs(c_sigd)
|
||||
itab("Route end: "..sigd_to_string(c_sigd).." ("..(e_tcbs.signal_name or "-")..")")
|
||||
itab("Route end: "..sigd_to_string(c_sigd).." ("..(e_tcbs and e_tcbs.signal_name or "-")..")")
|
||||
else
|
||||
itab("Route ends on dead-end")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue