aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking/signal_aspects.lua
diff options
context:
space:
mode:
authorY. Wang <yw05@forksworld.de>2022-07-03 12:45:27 +0200
committerY. Wang <yw05@forksworld.de>2023-03-23 20:06:02 +0100
commit875968f078ef89b13afae6d02a2dabe5ea7897cb (patch)
tree5b3c43ace046b595d09291e1af0e0a0136d7e13a /advtrains_interlocking/signal_aspects.lua
parentbd20da95ec5e1c113a57b7ac2c75d08b87cbf793 (diff)
downloadadvtrains-875968f078ef89b13afae6d02a2dabe5ea7897cb.tar.gz
advtrains-875968f078ef89b13afae6d02a2dabe5ea7897cb.tar.bz2
advtrains-875968f078ef89b13afae6d02a2dabe5ea7897cb.zip
Unassign distant signals when canceling route
Diffstat (limited to 'advtrains_interlocking/signal_aspects.lua')
-rw-r--r--advtrains_interlocking/signal_aspects.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/advtrains_interlocking/signal_aspects.lua b/advtrains_interlocking/signal_aspects.lua
index 2866ae1..5c4948b 100644
--- a/advtrains_interlocking/signal_aspects.lua
+++ b/advtrains_interlocking/signal_aspects.lua
@@ -32,6 +32,8 @@ local function register_type2(def)
t.label = label
t.main = asp.main
+ t.shunt = asp.shunt
+ t.proceed_as_main = asp.proceed_as_main
mainasps[idx] = t
mainasps[name] = idx
end
@@ -87,6 +89,8 @@ local function type2main_to_type1(name, asp)
local t = {
main = asptbl.main,
+ shunt = asptbl.shunt,
+ proceed_as_main = asptbl.proceed_as_main,
type2name = asp,
type2group = name,
dst = dst,