aboutsummaryrefslogtreecommitdiff
path: root/advtrains_line_automation/stoprail.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains_line_automation/stoprail.lua')
-rw-r--r--advtrains_line_automation/stoprail.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains_line_automation/stoprail.lua b/advtrains_line_automation/stoprail.lua
index e33e67a..b4c8d7d 100644
--- a/advtrains_line_automation/stoprail.lua
+++ b/advtrains_line_automation/stoprail.lua
@@ -15,10 +15,10 @@ local adefunc = function(def, preset, suffix, rotation)
end,
advtrains = {
on_train_enter = function(pos, train_id)
+ local train = advtrains.trains[train_id]
+ --advtrains.atc.train_set_command(train, "B0 OR D8 OC D1", true)
end,
on_train_approach = function(pos,train_id, train, index)
- --atdebug("Train approaches stop:",pos,train_id,index)
- --TODO conditions
advtrains.interlocking.lzb_add_oncoming_npr(train, index, 2)
end,
},