aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--advtrains/trainlogic.lua6
-rw-r--r--advtrains_interlocking/lzb.lua2
2 files changed, 4 insertions, 4 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua
index 8cfad4c..a55c5dc 100644
--- a/advtrains/trainlogic.lua
+++ b/advtrains/trainlogic.lua
@@ -390,9 +390,9 @@ function advtrains.train_step_b(id, train, dtime)
end
end
- if tarvel_cap and train.tarvelocity and tarvel_cap<train.tarvelocity then
- train.tarvelocity=tarvel_cap
- end
+ --if tarvel_cap and train.tarvelocity and tarvel_cap<train.tarvelocity then
+ -- train.tarvelocity=tarvel_cap
+ --end
local tmp_lever
diff --git a/advtrains_interlocking/lzb.lua b/advtrains_interlocking/lzb.lua
index 18fda55..14c1741 100644
--- a/advtrains_interlocking/lzb.lua
+++ b/advtrains_interlocking/lzb.lua
@@ -162,7 +162,7 @@ local function apply_control(id, train)
local i = 1
while i<=#lzb.oncoming do
- if lzb.oncoming[i].idx < train.index then
+ if lzb.oncoming[i].idx < train.index-0.5 then
if not lzb.oncoming[i].npr then
train.speed_restriction = lzb.oncoming[i].spd
end