Reworking the logic to accept only tracks with access=yes.
This commit is contained in:
parent
e43019a1df
commit
c45e2cbb82
@ -175,8 +175,8 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Is the highway tag listed as usable way?
|
//Is the highway tag listed as usable way?
|
||||||
if(("track" == highway && ("yes" == access || "yes" == accessTag)) || (0 < settings[highway] || "yes" == accessTag || "designated" == accessTag)) {
|
if(("track" == highway && ("yes" == access || "yes" == accessTag)) || ("track" != highway && (0 < settings[highway] || "yes" == accessTag || "designated" == accessTag) )) {
|
||||||
if(!w.isDurationSet) {
|
if(!w.isDurationSet) {
|
||||||
if(0 < settings[highway]) {
|
if(0 < settings[highway]) {
|
||||||
if(0 < maxspeed)
|
if(0 < maxspeed)
|
||||||
w.speed = std::min(maxspeed, settings[highway]);
|
w.speed = std::min(maxspeed, settings[highway]);
|
||||||
|
Loading…
Reference in New Issue
Block a user