fix calculateNewWinPoints

This commit is contained in:
romanschenk37 2022-03-24 19:14:36 +01:00
parent 0a57afc3c7
commit 7c8cf55ac2
1 changed files with 4 additions and 4 deletions

View File

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