From 32c75786298062e8700705d0996e1acbb3f8b022 Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Mon, 12 Aug 2013 13:19:07 +0200 Subject: [PATCH] fixes #695, maxspeed:forward incorrectly made any way routable --- profiles/car.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/profiles/car.lua b/profiles/car.lua index da6e6cedc..9ecbc81c2 100644 --- a/profiles/car.lua +++ b/profiles/car.lua @@ -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