remove type attribute

This commit is contained in:
Emil Tin
2014-08-19 16:08:38 +02:00
parent 2780ff31b5
commit fccb1aad32
10 changed files with 8 additions and 22 deletions
+1 -2
View File
@@ -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
View File
@@ -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
View File
@@ -203,6 +203,5 @@ function way_function (way)
end
end
way.type = 1
return 1
return true
end
+1 -2
View File
@@ -119,6 +119,5 @@ function way_function (way)
way.roundabout = true
end
way.type = 1
return 1
return true
end