fix calculateNewWinPoints
This commit is contained in:
parent
0a57afc3c7
commit
7c8cf55ac2
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue