Boat updating speed after key press has been fixed. #fix #story[1094]

This commit is contained in:
Joseph Gardner
2017-08-07 12:03:34 +12:00
parent ddaa2623ca
commit 0bf2c6106b
@@ -374,8 +374,8 @@ public class MockRace extends Race {
this.getWindDirection(), this.getWindDirection(),
this.getWindSpeed(), this.getWindSpeed(),
boat.getBearing(), boat.getBearing(),
boat.getBearing(), Bearing.fromDegrees(boat.getBearing().degrees() - 1),
boat.getBearing()); Bearing.fromDegrees(boat.getBearing().degrees() + 1));
if (vmg.getSpeed() > 0) { if (vmg.getSpeed() > 0) {
boat.setCurrentSpeed(vmg.getSpeed()); boat.setCurrentSpeed(vmg.getSpeed());
} }