From f7401716a1c446f1c2314cf9dfb9758dbf45a150 Mon Sep 17 00:00:00 2001 From: namdre Date: Mon, 17 Dec 2018 14:38:49 +0100 Subject: [PATCH] tweaking debug code. refs #4931 --- src/microsim/MSVehicle.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/microsim/MSVehicle.cpp b/src/microsim/MSVehicle.cpp index d71735780b11..9a43ec2a873c 100644 --- a/src/microsim/MSVehicle.cpp +++ b/src/microsim/MSVehicle.cpp @@ -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 &&