fix roundabouts with traffic lights

This commit is contained in:
Moritz Kobitzsch
2016-07-18 15:36:32 +02:00
parent abde215bc3
commit 8831ca2f32
2 changed files with 44 additions and 2 deletions
+5 -2
View File
@@ -1,5 +1,5 @@
#include "engine/guidance/post_processing.hpp"
#include "extractor/guidance/turn_instruction.hpp"
#include "engine/guidance/post_processing.hpp"
#include "engine/guidance/assemble_steps.hpp"
#include "engine/guidance/lane_processing.hpp"
@@ -535,7 +535,6 @@ std::vector<RouteStep> anticipateLaneChangeForRoundabouts(std::vector<RouteStep>
};
forEachRoundabout(begin(steps), end(steps), anticipate_lanes_in_roundabout);
return steps;
}
} // namespace
@@ -628,6 +627,10 @@ std::vector<RouteStep> postProcess(std::vector<RouteStep> steps)
has_entered_roundabout = false;
on_roundabout = false;
}
else if (on_roundabout && step_index + 1 < steps.size())
{
steps[step_index + 1].maneuver.exit = step.maneuver.exit;
}
}
// unterminated roundabout