diff options
author | orwell96 <orwell@bleipb.de> | 2018-12-04 00:17:54 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-12-04 00:17:54 +0100 |
commit | e1a8a2e974205c7a0ad2da2c3284a2a782865528 (patch) | |
tree | e66e1418cc55912ac339fd285e49c0e9da2e10d1 /advtrains_interlocking | |
parent | dd0c52d9aad151d1cfd206b12d6aab66a94b052f (diff) | |
download | advtrains-e1a8a2e974205c7a0ad2da2c3284a2a782865528.tar.gz advtrains-e1a8a2e974205c7a0ad2da2c3284a2a782865528.tar.bz2 advtrains-e1a8a2e974205c7a0ad2da2c3284a2a782865528.zip |
Do not set speed_restriction for npr
Diffstat (limited to 'advtrains_interlocking')
-rw-r--r-- | advtrains_interlocking/lzb.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/advtrains_interlocking/lzb.lua b/advtrains_interlocking/lzb.lua index 1746cc0..18fda55 100644 --- a/advtrains_interlocking/lzb.lua +++ b/advtrains_interlocking/lzb.lua @@ -163,7 +163,9 @@ local function apply_control(id, train) local i = 1 while i<=#lzb.oncoming do if lzb.oncoming[i].idx < train.index then - train.speed_restriction = lzb.oncoming[i].spd + if not lzb.oncoming[i].npr then + train.speed_restriction = lzb.oncoming[i].spd + end table.remove(lzb.oncoming, i) else i = i + 1 |