Skip to content

Commit

Permalink
tweaking debug code. refs #4931
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Dec 17, 2018
1 parent 8629397 commit f740171
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/microsim/MSVehicle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2548,7 +2548,11 @@ MSVehicle::checkLinkLeader(const MSLink* link, const MSLane* lane, double seen,
const MSVehicle* leader = (*it).vehAndGap.first;
if (leader == nullptr) {
// leader is a pedestrian. Passing 'this' as a dummy.
//std::cout << SIMTIME << " veh=" << getID() << " is blocked on link to " << (*link)->getViaLaneOrLane()->getID() << " by pedestrian. dist=" << it->distToCrossing << "\n";
#ifdef DEBUG_PLAN_MOVE_LEADERINFO
if (DEBUG_COND) {
std::cout << SIMTIME << " veh=" << getID() << " is blocked on link to " << link->getViaLaneOrLane()->getID() << " by pedestrian. dist=" << it->distToCrossing << "\n";
}
#endif
adaptToLeader(std::make_pair(this, -1), seen, lastLink, lane, v, vLinkPass, it->distToCrossing);
} else if (isLeader(link, leader)) {
if (MSGlobals::gLateralResolution > 0 &&
Expand Down

0 comments on commit f740171

Please sign in to comment.