made conditions equal
This commit is contained in:
parent
558e8e5955
commit
156d5f9f98
1 changed files with 7 additions and 1 deletions
|
|
@ -314,7 +314,13 @@ public final class VoiceHintProcessor {
|
||||||
input.cmd == VoiceHint.KR ||
|
input.cmd == VoiceHint.KR ||
|
||||||
input.cmd == VoiceHint.KL)
|
input.cmd == VoiceHint.KL)
|
||||||
&& !input.goodWay.isLinktType()) {
|
&& !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);
|
results.add(input);
|
||||||
} else {
|
} else {
|
||||||
if (inputLast != null) { // when drop add distance to last
|
if (inputLast != null) { // when drop add distance to last
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue