aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/tcb_ts_ui.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-03-15 16:40:23 +0100
committerorwell96 <orwell@bleipb.de>2019-03-15 16:40:23 +0100
commitc90411b880eac30d208508af6960f3415a8b09c6 (patch)
tree77545dfe7745c5852ff64f1540ff5e756e4ed72c /advtrains_interlocking/tcb_ts_ui.lua
parent7149137990dce85d856feb126df711c3c43087db (diff)
downloadadvtrains-c90411b880eac30d208508af6960f3415a8b09c6.tar.gz
advtrains-c90411b880eac30d208508af6960f3415a8b09c6.tar.bz2
advtrains-c90411b880eac30d208508af6960f3415a8b09c6.zip
Fix cancelling "Unknown Route" when section is deleted.
Diffstat (limited to 'advtrains_interlocking/tcb_ts_ui.lua')
-rw-r--r--advtrains_interlocking/tcb_ts_ui.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/advtrains_interlocking/tcb_ts_ui.lua b/advtrains_interlocking/tcb_ts_ui.lua
index 14e184e..4427a49 100644
--- a/advtrains_interlocking/tcb_ts_ui.lua
+++ b/advtrains_interlocking/tcb_ts_ui.lua
@@ -613,9 +613,8 @@ function advtrains.interlocking.show_signalling_form(sigd, pname, sel_rte)
end
elseif sigd_equal(tcbs.route_origin, sigd) then
-- something has gone wrong: tcbs.routeset should have been set...
- atwarn("Signal",tcbs.signal_name,"- Unknown route set. Route is being cancelled.")
+ form = form.."label[0.5,2.5;Inconsistent state: route_origin is same TCBS but no route set. Try again.]"
ilrs.cancel_route_from(sigd)
- return
else
form = form.."label[0.5,2.5;Route is set over this signal by:\n"..sigd_to_string(tcbs.route_origin).."]"
form = form.."label[0.5,4;Wait for this route to be cancelled in order to do anything here.]"