cleanup indentation of lua profiles
This commit is contained in:
parent
a5232f857e
commit
762dd17512
@ -187,8 +187,9 @@ function way_function (way)
|
|||||||
elseif "" ~= name then
|
elseif "" ~= name then
|
||||||
way.name = name
|
way.name = name
|
||||||
else
|
else
|
||||||
way.name = "{highway:"..highway.."}" -- if no name exists, use way type
|
-- if no name exists, use way type
|
||||||
-- this encoding scheme is excepted to be a temporary solution
|
-- this encoding scheme is excepted to be a temporary solution
|
||||||
|
way.name = "{highway:"..highway.."}"
|
||||||
end
|
end
|
||||||
|
|
||||||
-- roundabout handling
|
-- roundabout handling
|
||||||
@ -346,8 +347,6 @@ function way_function (way)
|
|||||||
way.backward_speed = maxspeed_backward
|
way.backward_speed = maxspeed_backward
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
way.type = 1
|
way.type = 1
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
@ -229,8 +229,7 @@ function way_function (way)
|
|||||||
oneway == "true" or
|
oneway == "true" or
|
||||||
junction == "roundabout" or
|
junction == "roundabout" or
|
||||||
(highway == "motorway_link" and oneway ~="no") or
|
(highway == "motorway_link" and oneway ~="no") or
|
||||||
(highway == "motorway" and oneway ~= "no")
|
(highway == "motorway" and oneway ~= "no") then
|
||||||
then
|
|
||||||
way.direction = Way.oneway
|
way.direction = Way.oneway
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -257,7 +256,6 @@ function way_function (way)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- These are wrappers to parse vectors of nodes and ways and thus to speed up any tracing JIT
|
-- These are wrappers to parse vectors of nodes and ways and thus to speed up any tracing JIT
|
||||||
|
|
||||||
function node_vector_function(vector)
|
function node_vector_function(vector)
|
||||||
for v in vector.nodes do
|
for v in vector.nodes do
|
||||||
node_function(v)
|
node_function(v)
|
||||||
|
Loading…
Reference in New Issue
Block a user