Skip to content

Commit

Permalink
addendum refs #13313
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed May 31, 2023
1 parent adc066a commit d2fc37c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/microsim/MSLane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3749,7 +3749,11 @@ MSLane::getFollowersOnConsecutive(const MSVehicle* ego, double backOffset,
}
}
} else {
agap = (*it).length - v->getPositionOnLane() + backOffset - v->getVehicleType().getMinGap();
if (next->getBidiLane() != nullptr && v->isBidiOn(next)) {
agap = v->getPositionOnLane() + backOffset - v->getVehicleType().getLengthWithGap();
} else {
agap = (*it).length - v->getPositionOnLane() + backOffset - v->getVehicleType().getMinGap();
}
if (!(*it).viaLink->havePriority() && !ego->onFurtherEdge(&(*it).lane->getEdge())
&& ego->isOnRoad() // during insertion, this can lead to collisions because ego's further lanes are not set (see #3053)
&& !ego->getLaneChangeModel().isOpposite()
Expand Down

0 comments on commit d2fc37c

Please sign in to comment.