aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/tcb_ts_ui.lua
diff options
context:
space:
mode:
authororwell <orwell@bleipb.de>2024-12-05 23:31:11 +0100
committerorwell <orwell@bleipb.de>2024-12-05 23:31:11 +0100
commitced8d8998de6b2cb6a758224641c125d02efea41 (patch)
tree025a83e2a7b15ea07b8a0b99f92d570b8a2d954c /advtrains_interlocking/tcb_ts_ui.lua
parentb2889e33ba389c936b9d6b1ca5be27ef8f147280 (diff)
downloadadvtrains-ced8d8998de6b2cb6a758224641c125d02efea41.tar.gz
advtrains-ced8d8998de6b2cb6a758224641c125d02efea41.tar.bz2
advtrains-ced8d8998de6b2cb6a758224641c125d02efea41.zip
Route Edit: Support aspect selection per signal, support call-on routes
Diffstat (limited to 'advtrains_interlocking/tcb_ts_ui.lua')
-rwxr-xr-xadvtrains_interlocking/tcb_ts_ui.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains_interlocking/tcb_ts_ui.lua b/advtrains_interlocking/tcb_ts_ui.lua
index bc52339..dfb2714 100755
--- a/advtrains_interlocking/tcb_ts_ui.lua
+++ b/advtrains_interlocking/tcb_ts_ui.lua
@@ -1008,12 +1008,12 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
name = "BS",
[1] = {
next = e_sigd, -- of the next (note: next) TCB on the route
- locks = {} -- route locks of this route segment
+ locks = {}, -- route locks of this route segment
+ assign_dst = fields.setupblockshort and true, -- assign dst, if short block was selected
},
terminal = e_sigd,
use_rscache = true,
-- main_aspect = <use default>
- assign_dst = fields.setupblockshort and true, -- assign dst, if short block was selected
default_autoworking = true,
}
local rid = #tcbs.routes + 1 -- typically 1