aboutsummaryrefslogtreecommitdiff
path: root/advtrains_line_automation
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-04-16 09:16:44 +0200
committerorwell96 <orwell@bleipb.de>2019-04-16 09:16:44 +0200
commitea33ad9de0a77887f0181d8581568fe79d14255e (patch)
tree7c2fa83878777c921ace816a1954d316c7f84a1e /advtrains_line_automation
parentc50224e05cfc7a37b9181565024c972446a720ca (diff)
downloadadvtrains-ea33ad9de0a77887f0181d8581568fe79d14255e.tar.gz
advtrains-ea33ad9de0a77887f0181d8581568fe79d14255e.tar.bz2
advtrains-ea33ad9de0a77887f0181d8581568fe79d14255e.zip
Move LZB system to core and unify approach callback mechanism
Diffstat (limited to 'advtrains_line_automation')
-rw-r--r--advtrains_line_automation/stoprail.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains_line_automation/stoprail.lua b/advtrains_line_automation/stoprail.lua
index 2e6072e..e955d76 100644
--- a/advtrains_line_automation/stoprail.lua
+++ b/advtrains_line_automation/stoprail.lua
@@ -151,7 +151,7 @@ local adefunc = function(def, preset, suffix, rotation)
stdata.ars = {default=true}
end
if stdata.ars and (stdata.ars.default or advtrains.interlocking.ars_check_rule_match(stdata.ars, train) ) then
- advtrains.interlocking.lzb_add_oncoming_npr(train, index, 2)
+ advtrains.lzb_add_checkpoint(train, index, 2, nil)
local stn = advtrains.lines.stations[stdata.stn]
local stnname = stn and stn.name or "Unknown Station"
train.text_inside = "Next Stop:\n"..stnname