Skip to content

Commit

Permalink
Fixed #8449
Browse files Browse the repository at this point in the history
  • Loading branch information
palvarezlopez committed Apr 6, 2021
1 parent 25059aa commit a16cd32
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/netbuild/NBEdge.cpp
Expand Up @@ -4079,11 +4079,11 @@ NBEdge::getViaSuccessors(SUMOVehicleClass vClass) const {
for (const Connection& con : myConnections) {
std::pair<const NBEdge*, const Connection*> pair(con.toEdge, nullptr);
// special case for Persons in Netedit
if (vClass == SVC_PEDESTRIAN) { //
myViaSuccessors.push_back(pair); //
} else if (con.fromLane >= 0 && con.toLane >= 0 &&
con.toEdge != nullptr &&
(getPermissions(con.fromLane) & con.toEdge->getPermissions(con.toLane) & vClass) != 0) {
if (vClass == SVC_PEDESTRIAN) {
myViaSuccessors.push_back(pair); // Pedestrians have complete freedom of movement in all sucessors
} else if ((con.fromLane >= 0) && (con.toLane >= 0) &&
(con.toEdge != nullptr) &&
((getPermissions(con.fromLane) & con.toEdge->getPermissions(con.toLane) & vClass) == vClass)) {
// ignore duplicates
if (con.getLength() > 0) {
pair.second = &con;
Expand Down

0 comments on commit a16cd32

Please sign in to comment.