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