Unblocked intermediate points for bikes and pedestrians

This commit is contained in:
r.kuznetsov 2017-08-04 13:56:01 +03:00 committed by Daria Volvenkova
parent 020f362572
commit 402be49ff0

View file

@ -564,10 +564,6 @@ bool RoutingManager::CouldAddIntermediatePoint() const
if (!IsRoutingActive())
return false;
// Now only car routing supports intermediate points.
if (m_currentRouterType != RouterType::Vehicle)
return false;
auto const & controller = m_bmManager->GetUserMarksController(UserMarkType::ROUTING_MARK);
return controller.GetUserMarkCount() <
static_cast<size_t>(RoutePointsLayout::kMaxIntermediatePointsCount + 2);