Skip to content

Commit

Permalink
applying fix also for matching within route. refs #16092
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Jan 30, 2025
1 parent 4262c6f commit c6f1fb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libsumo/Helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,8 @@ Helper::findCloserLane(const MSEdge* edge, const Position& pos, SUMOVehicleClass
// mapping to shapeless lanes is a bad idea
continue;
}
const double dist = candidateLane->getShape().distance2D(pos);
double dist = candidateLane->getShape().distance2D(pos);
dist = patchShapeDistance(candidateLane, pos, dist, false);
#ifdef DEBUG_MOVEXY
std::cout << " b at lane " << candidateLane->getID() << " dist:" << dist << " best:" << bestDistance << std::endl;
#endif
Expand Down

0 comments on commit c6f1fb3

Please sign in to comment.