aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--advtrains/atc.lua6
-rw-r--r--advtrains_interlocking/train_sections.lua2
2 files changed, 3 insertions, 5 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)
diff --git a/advtrains_interlocking/train_sections.lua b/advtrains_interlocking/train_sections.lua
index bd89c4b..21d3d13 100644
--- a/advtrains_interlocking/train_sections.lua
+++ b/advtrains_interlocking/train_sections.lua
@@ -178,7 +178,7 @@ advtrains.te_register_on_create(function(id, train)
-- Make train a shunt move
train.is_shunt = true
elseif ts_id==nil then
- atwarn("Train",id,": Unable to determine whether to block a track section!")
+ atlog("Train",id,": Unable to determine whether to block a track section!")
else
--atdebug("Train",id,": Outside of interlocked area!")
end