Boat updating speed after key press has been fixed. #fix #story[1094]
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user