diff options
author | orwell96 <orwell@bleipb.de> | 2018-12-04 19:27:44 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-12-04 19:27:44 +0100 |
commit | e37f4f9188808c3a91be55ba90b9b666341af3cf (patch) | |
tree | 053df6526e0e13f57fde063d2cb32277d722d5ba /advtrains_interlocking | |
parent | e1a8a2e974205c7a0ad2da2c3284a2a782865528 (diff) | |
download | advtrains-e37f4f9188808c3a91be55ba90b9b666341af3cf.tar.gz advtrains-e37f4f9188808c3a91be55ba90b9b666341af3cf.tar.bz2 advtrains-e37f4f9188808c3a91be55ba90b9b666341af3cf.zip |
Apply speed restriction 0.5 indexes later, do not cap tarvelocity by speed_restriction
Diffstat (limited to 'advtrains_interlocking')
-rw-r--r-- | advtrains_interlocking/lzb.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |