diff options
Diffstat (limited to 'navit/route.c')
-rw-r--r-- | navit/route.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/navit/route.c b/navit/route.c index e22e75b40..20d0d3437 100644 --- a/navit/route.c +++ b/navit/route.c @@ -68,8 +68,6 @@ #include "roadprofile.h" #include "debug.h" -#define X_TURNAROUND_PENALTY - struct map_priv { struct route *route; }; @@ -2020,14 +2018,12 @@ static void route_graph_point_update(struct vehicleprofile *profile, struct rout for (s = p->start; s; s = s->start_next) { /* Iterate over all the segments leading away from our point */ val = route_value_seg(profile, s->end, s, 1); -#ifdef X_TURNAROUND_PENALTY if (val != INT_MAX && s->end->seg && item_is_equal(s->data.item, s->end->seg->data.item)) { if (profile->turn_around_penalty2) val += profile->turn_around_penalty2; else val = INT_MAX; } -#endif if (val != INT_MAX) { new = route_value_add(val, s->end->value); if (new < p->rhs) { @@ -2039,14 +2035,12 @@ static void route_graph_point_update(struct vehicleprofile *profile, struct rout for (s = p->end; s; s = s->end_next) { /* Iterate over all the segments leading towards our point */ val = route_value_seg(profile, s->start, s, -1); -#ifdef X_TURNAROUND_PENALTY if (val != INT_MAX && s->start->seg && item_is_equal(s->data.item, s->start->seg->data.item)) { if (profile->turn_around_penalty2) val += profile->turn_around_penalty2; else val = INT_MAX; } -#endif if (val != INT_MAX) { new = route_value_add(val, s->start->value); if (new < p->rhs) { |