Skip to content

Commit

Permalink
Clamp durations to 0 rather than 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauren Budorick committed Apr 28, 2016
1 parent 97ffd5d commit 410661b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/engine/routing_algorithms/routing_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ template <class DataFacadeT, class Derived> class BasicRoutingInterface
// node to the first turn would be the same as from end to end of a segment,
// which is obviously incorrect and not ideal...
unpacked_path.front().duration_until_turn =
std::max(unpacked_path.front().duration_until_turn - source_weight, 1);
std::max(unpacked_path.front().duration_until_turn - source_weight, 0);
}

// there is no equivalent to a node-based node in an edge-expanded graph.
Expand Down

0 comments on commit 410661b

Please sign in to comment.