Fix last commit (and another warn2log)
parent
f2a62c2d77
commit
f6f922c90c
|
@ -189,10 +189,8 @@ local matchptn={
|
||||||
return #match+1
|
return #match+1
|
||||||
end,
|
end,
|
||||||
["BB"]=function(id, train)
|
["BB"]=function(id, train)
|
||||||
if match=="B" then
|
train.atc_brake_target = -1
|
||||||
train.atc_brake_target = -1
|
train.tarvelocity = 0
|
||||||
train.tarvelocity = 0
|
|
||||||
else
|
|
||||||
return 2
|
return 2
|
||||||
end,
|
end,
|
||||||
["W"]=function(id, train)
|
["W"]=function(id, train)
|
||||||
|
|
|
@ -178,7 +178,7 @@ advtrains.te_register_on_create(function(id, train)
|
||||||
-- Make train a shunt move
|
-- Make train a shunt move
|
||||||
train.is_shunt = true
|
train.is_shunt = true
|
||||||
elseif ts_id==nil then
|
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
|
else
|
||||||
--atdebug("Train",id,": Outside of interlocked area!")
|
--atdebug("Train",id,": Outside of interlocked area!")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue