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