made conditions equal

This commit is contained in:
afischerdev 2025-06-17 13:08:30 +02:00
parent 558e8e5955
commit 156d5f9f98

View file

@ -314,7 +314,13 @@ public final class VoiceHintProcessor {
input.cmd == VoiceHint.KR ||
input.cmd == VoiceHint.KL)
&& !input.goodWay.isLinktType()) {
if (input.goodWay.getPrio() < input.maxBadPrio && (inputLastSaved != null && inputLastSaved.distanceToNext > catchingRange)) {
if (
((Math.abs(input.lowerBadWayAngle) < 35.f ||
input.higherBadWayAngle < 35.f)
|| input.goodWay.getPrio() < input.maxBadPrio)
&& (inputLastSaved != null && inputLastSaved.distanceToNext > minRange)
&& (input.distanceToNext > minRange)
) {
results.add(input);
} else {
if (inputLast != null) { // when drop add distance to last