Strategy #31
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue