From 3abb55458516116ea3d82b7bc88a0261573eff27 Mon Sep 17 00:00:00 2001 From: Alexander Held | geOps Date: Mon, 12 Oct 2020 15:20:20 +0200 Subject: [PATCH] Revert "Enable transit line penalties also when no explicit line was given" This reverts commit f813c1f842415d47f4fac7cd1f6377f514ef2d79. --- src/pfaedle/router/Router.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pfaedle/router/Router.cpp b/src/pfaedle/router/Router.cpp index 98054a1..38e49c7 100644 --- a/src/pfaedle/router/Router.cpp +++ b/src/pfaedle/router/Router.cpp @@ -108,7 +108,7 @@ EdgeCost CostFunc::operator()(const trgraph::Edge* from, const trgraph::Node* n, // _____________________________________________________________________________ double CostFunc::transitLineCmp(const trgraph::EdgePL& e) const { if (_rAttrs.shortName.empty() && _rAttrs.toString.empty() && - _rAttrs.fromString.empty() && !e.getLines().empty()) + _rAttrs.fromString.empty()) return 0; double best = 1; for (const auto* l : e.getLines()) {