Don't sum up durations of merged steps since we do that in a different place now
This commit is contained in:
parent
4e8fe89faa
commit
4309ccfa02
@ -324,6 +324,7 @@ template <class DataFacadeT, class Derived> class BasicRoutingInterface
|
||||
extractor::guidance::TurnInstruction::NO_TURN(), travel_mode,
|
||||
INVALID_EXIT_NR});
|
||||
}
|
||||
BOOST_ASSERT(unpacked_path.size() > 0);
|
||||
unpacked_path.back().turn_instruction = turn_instruction;
|
||||
unpacked_path.back().duration_until_turn += (ed.distance - total_weight);
|
||||
|
||||
|
@ -30,7 +30,6 @@ PathData forwardInto(PathData destination, const PathData &source)
|
||||
{
|
||||
// Merge a turn into a silent turn
|
||||
// Overwrites turn instruction and increases exit NR
|
||||
destination.duration_until_turn += source.duration_until_turn;
|
||||
destination.exit = source.exit;
|
||||
return destination;
|
||||
}
|
||||
@ -40,7 +39,6 @@ PathData accumulateInto(PathData destination, const PathData &source)
|
||||
// Merge a turn into a silent turn
|
||||
// Overwrites turn instruction and increases exit NR
|
||||
BOOST_ASSERT(canMergeTrivially(destination, source));
|
||||
destination.duration_until_turn += source.duration_until_turn;
|
||||
destination.exit = source.exit + 1;
|
||||
return destination;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user