fixes #695, maxspeed:forward incorrectly made any way routable

This commit is contained in:
Dennis Luxen 2013-08-12 13:19:07 +02:00
parent 5bc5e0e8e9
commit 32c7578629

View File

@ -197,7 +197,7 @@ function way_function (way)
end
-- Override speed settings if explicit forward/backward maxspeeds are given
if maxspeed_forward ~= nil and maxspeed_forward > 0 then
if way.speed > 0 and maxspeed_forward ~= nil and maxspeed_forward > 0 then
if Way.bidirectional == way.direction then
way.backward_speed = way.speed
end
@ -211,7 +211,6 @@ function way_function (way)
if ignore_in_grid[highway] ~= nil and ignore_in_grid[highway] then
way.ignore_in_grid = true
end
way.type = 1
return 1
end