Skip to content

Commit

Permalink
fixing route offset for matching internal lanes #1922
Browse files Browse the repository at this point in the history
  • Loading branch information
behrisch committed Apr 30, 2024
1 parent 014403a commit 68a1d48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libsumo/Helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,9 @@ Helper::moveToXYMap_matchingRoutePosition(const Position& pos, const std::string
#ifdef DEBUG_MOVEXY
std::cout << SIMTIME << " prev=" << Named::getIDSecure(prev) << " cand=" << Named::getIDSecure(cand) << " internal=" << Named::getIDSecure(internalCand) << "\n";
#endif
findCloserLane(internalCand, pos, vClass, bestDistance, lane);
if (findCloserLane(internalCand, pos, vClass, bestDistance, lane)) {
routeOffset = i - 1;
}
prev = internalCand;
}
if (findCloserLane(cand, pos, vClass, bestDistance, lane)) {
Expand Down

0 comments on commit 68a1d48

Please sign in to comment.