aboutsummaryrefslogtreecommitdiff
path: root/advtrains/atc.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-05-17 11:16:04 +0200
committerorwell96 <orwell@bleipb.de>2018-06-14 17:39:42 +0200
commitb420a719398fa0e342d5ee8547464179664ae6b9 (patch)
tree541999867946eea1dc94fe0c9930af67e39434e7 /advtrains/atc.lua
parentcaf2bda7bc02f0bbe6dbbeb415e7881158d143b9 (diff)
downloadadvtrains-b420a719398fa0e342d5ee8547464179664ae6b9.tar.gz
advtrains-b420a719398fa0e342d5ee8547464179664ae6b9.tar.bz2
advtrains-b420a719398fa0e342d5ee8547464179664ae6b9.zip
Implement a reverse path lookup for trains instead of an occupations window system
Diffstat (limited to 'advtrains/atc.lua')
-rw-r--r--advtrains/atc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/atc.lua b/advtrains/atc.lua
index 940cb08..1d3b04c 100644
--- a/advtrains/atc.lua
+++ b/advtrains/atc.lua
@@ -175,7 +175,7 @@ local matchptn={
end,
["B([0-9B]+)"]=function(id, train, match)
if match=="B" then
- train.atc_brake_target = -1 -- this means emergency brake. TODO don't forget to implement in train step!
+ train.atc_brake_target = -1
train.tarvelocity = 0
elseif train.velocity>tonumber(match) then
train.atc_brake_target=tonumber(match)