Revert "Enable transit line penalties also when no explicit line was given"

This reverts commit f813c1f842.
This commit is contained in:
Alexander Held | geOps 2020-10-12 15:20:20 +02:00
parent b0eb6186f7
commit 3abb554585

View file

@ -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()) {