From fe620eccb283a9d6e15c8fdbf564e8e2142da749 Mon Sep 17 00:00:00 2001 From: orwell Date: Wed, 11 Dec 2024 01:13:23 +0100 Subject: ks signals: fix signs; mark routes with illegal end TCB as invalid --- advtrains_interlocking/tcb_ts_ui.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'advtrains_interlocking') diff --git a/advtrains_interlocking/tcb_ts_ui.lua b/advtrains_interlocking/tcb_ts_ui.lua index 5bd6c08..abcdf61 100755 --- a/advtrains_interlocking/tcb_ts_ui.lua +++ b/advtrains_interlocking/tcb_ts_ui.lua @@ -780,6 +780,11 @@ function advtrains.interlocking.check_route_valid(route, sigd) c_sigd = c_rseg.next i = i + 1 end + -- check end TCB + c_tcbs = ildb.get_tcbs(c_sigd) + if not c_tcbs then + return false, "Final TCBS missing at "..sigd_to_string(c_sigd) + end return true, nil, c_sigd end -- cgit v1.2.3