change for voicehint list first step

This commit is contained in:
afischerdev 2023-12-22 18:09:44 +01:00
parent c5f158ec43
commit 01ac57a929

View file

@ -129,10 +129,7 @@ public final class VoiceHintProcessor {
if (badPrio > maxPrioAll && !isBadHighway2Link) { if (badPrio > maxPrioAll && !isBadHighway2Link) {
maxPrioAll = badPrio; maxPrioAll = badPrio;
} input.maxBadPrio = Math.max(input.maxBadPrio, badPrio);
if (badWay.costfactor < 20.f && Math.abs(badTurn) < minAbsAngeRaw) {
minAbsAngeRaw = Math.abs(badTurn);
} }
if (badPrio < minPrio) { if (badPrio < minPrio) {
@ -147,6 +144,10 @@ public final class VoiceHintProcessor {
continue; // ways from the back should not trigger a slight turn continue; // ways from the back should not trigger a slight turn
} }
if (badWay.costfactor < 20.f && Math.abs(badTurn) < minAbsAngeRaw) {
minAbsAngeRaw = Math.abs(badTurn);
}
if (badPrio > maxPrioCandidates) { if (badPrio > maxPrioCandidates) {
maxPrioCandidates = badPrio; maxPrioCandidates = badPrio;
input.maxBadPrio = Math.max(input.maxBadPrio, badPrio); input.maxBadPrio = Math.max(input.maxBadPrio, badPrio);