Fix speed sign allowing v>max_speed
This commit is contained in:
parent
0b9441c289
commit
5912f778e1
|
@ -392,7 +392,7 @@ function advtrains.train_step_b(id, train, dtime)
|
||||||
-- interlocking speed restriction
|
-- interlocking speed restriction
|
||||||
elseif train.speed_restriction then
|
elseif train.speed_restriction then
|
||||||
--atprint("in train_step_b: applying interlocking speed restriction",train.speed_restriction)
|
--atprint("in train_step_b: applying interlocking speed restriction",train.speed_restriction)
|
||||||
sit_v_cap = train.speed_restriction
|
sit_v_cap = math.min(sit_v_cap or math.huge, train.speed_restriction)
|
||||||
end
|
end
|
||||||
|
|
||||||
--apply off-track handling:
|
--apply off-track handling:
|
||||||
|
|
Loading…
Reference in New Issue