Reworking the logic to accept only tracks with access=yes.

This commit is contained in:
DennisOSRM 2012-03-19 11:49:52 +01:00
parent e43019a1df
commit c45e2cbb82

View File

@ -175,8 +175,8 @@ public:
}
//Is the highway tag listed as usable way?
if(("track" == highway && ("yes" == access || "yes" == accessTag)) || (0 < settings[highway] || "yes" == accessTag || "designated" == accessTag)) {
if(!w.isDurationSet) {
if(("track" == highway && ("yes" == access || "yes" == accessTag)) || ("track" != highway && (0 < settings[highway] || "yes" == accessTag || "designated" == accessTag) )) {
if(!w.isDurationSet) {
if(0 < settings[highway]) {
if(0 < maxspeed)
w.speed = std::min(maxspeed, settings[highway]);