aboutsummaryrefslogtreecommitdiff
path: root/advtrains
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-01-22 23:40:53 +0100
committerorwell96 <orwell@bleipb.de>2019-01-22 23:40:53 +0100
commitf6f922c90cfc2c5795110a5b2c0bdbee927a67ed (patch)
treebb5b82d8820d5c9e9e59113a66119bb74fc33986 /advtrains
parentf2a62c2d772b7242858be19934512fd9fc3d89fc (diff)
downloadadvtrains-f6f922c90cfc2c5795110a5b2c0bdbee927a67ed.tar.gz
advtrains-f6f922c90cfc2c5795110a5b2c0bdbee927a67ed.tar.bz2
advtrains-f6f922c90cfc2c5795110a5b2c0bdbee927a67ed.zip
Fix last commit (and another warn2log)
Diffstat (limited to 'advtrains')
-rw-r--r--advtrains/atc.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/advtrains/atc.lua b/advtrains/atc.lua
index 58d59af..00bab26 100644
--- a/advtrains/atc.lua
+++ b/advtrains/atc.lua
@@ -189,10 +189,8 @@ local matchptn={
return #match+1
end,
["BB"]=function(id, train)
- if match=="B" then
- train.atc_brake_target = -1
- train.tarvelocity = 0
- else
+ train.atc_brake_target = -1
+ train.tarvelocity = 0
return 2
end,
["W"]=function(id, train)