clean up signal penalty test

This commit is contained in:
Emil Tin
2012-09-28 15:57:54 +02:00
parent 4c02542dc5
commit eae9e4bab7
2 changed files with 20 additions and 16 deletions
+6
View File
@@ -14,6 +14,12 @@ speed_profile = {
}
function node_function (node)
local traffic_signal = node.tags:Find("highway")
if traffic_signal == "traffic_signals" then
node.traffic_light = true;
-- TODO: a way to set the penalty value
end
return 1
end