Strategy #31

Merged
schrom01 merged 24 commits from Strategy into main 2022-03-25 09:24:21 +01:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit 7c8cf55ac2 - Show all commits

View File

@ -435,16 +435,16 @@ public class Track implements TrackSpecification {
for (PositionVector point : path) {
switch (getSpaceType(point)) {
case FINISH_UP:
if (start.getY() < finish.getY()) {
if (start.getY() > finish.getY()) {
return 1;
} else if (start.getY() > finish.getY()) {
} else if (start.getY() < finish.getY()) {
return -1;
}
break;
case FINISH_DOWN:
if (start.getY() > finish.getY()) {
if (start.getY() < finish.getY()) {
return 1;
} else if (start.getY() < finish.getY()) {
} else if (start.getY() > finish.getY()) {
return -1;
}
break;