Do not set speed_restriction for npr
parent
dd0c52d9aa
commit
e1a8a2e974
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue