Silence some warnings from router

parent 6c7cbcc4
Pipeline #21069 passed with stages
in 9 minutes and 20 seconds
...@@ -1689,7 +1689,7 @@ double UnivFFviaFM::getCostToDestination(const int destID, const Point& position ...@@ -1689,7 +1689,7 @@ double UnivFFviaFM::getCostToDestination(const int destID, const Point& position
} else if ((key < _grid->GetnPoints()-_grid->GetiMax()) && (_gridCode[key+_grid->GetiMax()] != OUTSIDE) && (_gridCode[key+_grid->GetiMax()] != WALL)) { } else if ((key < _grid->GetnPoints()-_grid->GetiMax()) && (_gridCode[key+_grid->GetiMax()] != OUTSIDE) && (_gridCode[key+_grid->GetiMax()] != WALL)) {
key = key + _grid->GetiMax(); key = key + _grid->GetiMax();
} else { } else {
Log->Write("ERROR:\t In getCostToDestination(2 args)"); // Log->Write("ERROR:\t In getCostToDestination(2 args)");
} }
} }
if (_costFieldWithKey.count(destID)==1 && _costFieldWithKey[destID]) { if (_costFieldWithKey.count(destID)==1 && _costFieldWithKey[destID]) {
......
...@@ -1702,7 +1702,7 @@ double UnivFFviaFMTrips::getCostToDestination(const int destID, const Point& pos ...@@ -1702,7 +1702,7 @@ double UnivFFviaFMTrips::getCostToDestination(const int destID, const Point& pos
} else if ((key < _grid->GetnPoints()-_grid->GetiMax()) && (_gridCode[key+_grid->GetiMax()] != OUTSIDE) && (_gridCode[key+_grid->GetiMax()] != WALL)) { } else if ((key < _grid->GetnPoints()-_grid->GetiMax()) && (_gridCode[key+_grid->GetiMax()] != OUTSIDE) && (_gridCode[key+_grid->GetiMax()] != WALL)) {
key = key + _grid->GetiMax(); key = key + _grid->GetiMax();
} else { } else {
Log->Write("ERROR:\t In getCostToDestination(2 args)"); // Log->Write("ERROR:\t In getCostToDestination(2 args)");
} }
} }
if (_costFieldWithKey.count(destID)==1 && _costFieldWithKey[destID]) { if (_costFieldWithKey.count(destID)==1 && _costFieldWithKey[destID]) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment