Cleaning of several regressions in the parsing code.
This commit is contained in:
+1
-6
@@ -75,13 +75,8 @@ function node_function (node)
|
||||
return 1
|
||||
end
|
||||
|
||||
function way_function (way, numberOfNodesInWay)
|
||||
function way_function (way)
|
||||
|
||||
-- A way must have two nodes or more
|
||||
if(numberOfNodesInWay < 2) then
|
||||
return 0;
|
||||
end
|
||||
|
||||
-- First, get the properties of each way that we come across
|
||||
local highway = way.tags:Find("highway")
|
||||
local name = way.tags:Find("name")
|
||||
|
||||
Reference in New Issue
Block a user