Skip to content

Commit

Permalink
relaxing ignore constraint. refs #5004
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Jan 10, 2019
1 parent 313e48f commit 39e7271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/microsim/MSLink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ MSLink::getLeaderInfo(const MSVehicle* ego, double dist, std::vector<const MSPer
continue;
}
// ignore foe vehicles that will not pass
if ((!cannotIgnore || leader->isStopped())
if ((!cannotIgnore || leader->isStopped() || sameTarget)
&& !foeLane->getLinkCont()[0]->getApproaching(leader).willPass
&& leader->isFrontOnLane(foeLane)
&& !isOpposite
Expand Down

0 comments on commit 39e7271

Please sign in to comment.