diff --git a/profiles/bicycle.lua b/profiles/bicycle.lua index 7e895712a..1ebbffddf 100644 --- a/profiles/bicycle.lua +++ b/profiles/bicycle.lua @@ -90,12 +90,13 @@ surface_speeds = { ["sand"] = 3 } +-- these need to be global because they are accesed externaly traffic_signal_penalty = 2 use_turn_restrictions = false +u_turn_penalty = 20 local obey_oneway = true local ignore_areas = true -u_turn_penalty = 20 local turn_penalty = 60 local turn_bias = 1.4 -- reduce the driving speed by 30% for unsafe roads diff --git a/profiles/car.lua b/profiles/car.lua index bcd78dc85..959558ff3 100644 --- a/profiles/car.lua +++ b/profiles/car.lua @@ -128,6 +128,8 @@ maxspeed_table = { ["uk:motorway"] = (70*1609)/1000 } +-- these need to be global because they are accesed externaly +u_turn_penalty = 20 traffic_signal_penalty = 2 use_turn_restrictions = true @@ -138,7 +140,6 @@ local turn_bias = 1.2 local obey_oneway = true local ignore_areas = true -u_turn_penalty = 20 local abs = math.abs local min = math.min