Appears to fix wind arrow direction.
This commit is contained in:
@@ -21,7 +21,7 @@ public class WindCommand extends ObserverCommand {
|
|||||||
public WindCommand(MockRace race, MockBoat boat, boolean upwind) {
|
public WindCommand(MockRace race, MockBoat boat, boolean upwind) {
|
||||||
super(race, boat);
|
super(race, boat);
|
||||||
race.addAngularCommand(this);
|
race.addAngularCommand(this);
|
||||||
this.direction = upwind? -1 : 1;
|
this.direction = upwind? 1 : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ public class ArrowController {
|
|||||||
*/
|
*/
|
||||||
private void updateWindBearing(Bearing bearing) {
|
private void updateWindBearing(Bearing bearing) {
|
||||||
//Rotate the wind arrow.
|
//Rotate the wind arrow.
|
||||||
arrowStackPane.setRotate(bearing.degrees());
|
arrowStackPane.setRotate(bearing.degrees() + 180);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user