remove type attribute
This commit is contained in:
@@ -373,8 +373,7 @@ function way_function (way)
|
||||
-- maxspeed
|
||||
MaxSpeed.limit( way, maxspeed, maxspeed_forward, maxspeed_backward )
|
||||
|
||||
way.type = 1
|
||||
return 1
|
||||
return true
|
||||
end
|
||||
|
||||
function turn_function (angle)
|
||||
|
||||
+1
-2
@@ -274,14 +274,13 @@ function way_function (way)
|
||||
if ignore_in_grid[highway] then
|
||||
way.ignore_in_grid = true
|
||||
end
|
||||
way.type = 1
|
||||
|
||||
-- scale speeds to get better avg driving times
|
||||
way.forward_speed = way.forward_speed * speed_reduction
|
||||
if maxspeed_backward > 0 then
|
||||
way.backward_speed = way.backward_speed*speed_reduction
|
||||
end
|
||||
return
|
||||
return true
|
||||
end
|
||||
|
||||
-- These are wrappers to parse vectors of nodes and ways and thus to speed up any tracing JIT
|
||||
|
||||
+1
-2
@@ -203,6 +203,5 @@ function way_function (way)
|
||||
end
|
||||
end
|
||||
|
||||
way.type = 1
|
||||
return 1
|
||||
return true
|
||||
end
|
||||
|
||||
@@ -119,6 +119,5 @@ function way_function (way)
|
||||
way.roundabout = true
|
||||
end
|
||||
|
||||
way.type = 1
|
||||
return 1
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user