Fixed a bug in the computation of routes. Fixes issue #334 and other.

Thanks apmon
This commit is contained in:
DennisOSRM 2012-07-25 19:11:58 +02:00
parent 2cf175cf91
commit d5cb1fa15f

View File

@ -298,7 +298,8 @@ private:
}
}
if((distance-edgeBasedOffset)*(1+VIAPATH_EPSILON) > *_upperbound){
int scaledDistance = (distance+edgeBasedOffset)/(1.+VIAPATH_EPSILON);
if(scaledDistance > *_upperbound){
_forwardHeap->DeleteAll();
return;
}