summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init_code.lua8
-rw-r--r--nodes/(1626,9,4615).lua1
2 files changed, 7 insertions, 2 deletions
diff --git a/init_code.lua b/init_code.lua
index c9acd9e..9c86dec 100644
--- a/init_code.lua
+++ b/init_code.lua
@@ -281,8 +281,10 @@ F.ttp_stop({
only_lines = nil, --if given a table, only trains where only_lines[get_line()] is true are considered
end_of_tt = { TT_ID = true },
-- if present and key is true for a TT identifier, this is the last station on this timetable. Trains will stop recording timetable and be deregistered.
- departure = { TT_ID = RWT relative to initial departure }
+ departure = { TT_ID = RWT relative to initial departure },
-- If present, override desired departure time. Defaults to travel time + STOP_TIME if not provided
+ no_disable_ars = nil,
+ -- if true, does not disable ARS on approach (used for example at INTERCAL)
})
]]function F.ttp_stop(p)
-- set my approach callback mode
@@ -298,7 +300,9 @@ F.ttp_stop({
local tti = S.ttp[tt]
if event.approach and not event.has_entered then
-- make the train stop
- atc_set_ars_disable(true)
+ if not p.no_disable_ars then
+ atc_set_ars_disable(true)
+ end
atc_set_lzb_tsr(2)
atc_set_text_inside("Next stop: "..p.stn)
end
diff --git a/nodes/(1626,9,4615).lua b/nodes/(1626,9,4615).lua
index 59c5b0c..36c8603 100644
--- a/nodes/(1626,9,4615).lua
+++ b/nodes/(1626,9,4615).lua
@@ -2,4 +2,5 @@ F.ttp_stop({
stn = "INTERCAL",
doorside = "L",
only_lines = {CFE=true},
+ no_disable_ars = true,
}) \ No newline at end of file