Skip to content

Commit

Permalink
added warning refs #4628
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Sep 20, 2018
1 parent a947ab7 commit 87fa8a6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/microsim/MSLane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
//#define DEBUG_NO_CONNECTION

#define DEBUG_COND (false)
//#define DEBUG_COND (getID() == "undefined")
//#define DEBUG_COND2(obj) ((obj != 0 && (obj)->getID() == "disabled"))
#define DEBUG_COND2(obj) ((obj != 0 && (obj)->isSelected()))

Expand Down Expand Up @@ -215,6 +216,11 @@ MSLane::addLink(MSLink* link) {
void
MSLane::addNeigh(const std::string& id) {
myNeighs.push_back(id);
// warn about lengths after loading the second lane of the pair
if (getOpposite() != nullptr && getLength() != getOpposite()->getLength()) {
WRITE_WARNING("Unequal lengths of neigh lane '" + getID() + "' and lane '" + id + "' (" + toString(getLength())
+ ", " + toString(getOpposite()->getLength()) + ")");
}
}


Expand Down

0 comments on commit 87fa8a6

Please sign in to comment.