fixed autovmg.
This commit is contained in:
@@ -321,6 +321,11 @@ public class MockRace extends Race {
|
|||||||
|
|
||||||
checkPosition(boat, totalElapsedMilliseconds);
|
checkPosition(boat, totalElapsedMilliseconds);
|
||||||
|
|
||||||
|
if (boat.getCurrentSpeed() == 0) {
|
||||||
|
newOptimalVMG(boat);
|
||||||
|
boat.setBearing(boat.calculateBearingToNextMarker());
|
||||||
|
}
|
||||||
|
|
||||||
setBoatSpeed(boat);
|
setBoatSpeed(boat);
|
||||||
|
|
||||||
//Calculates the distance travelled, in meters, in the current timeslice.
|
//Calculates the distance travelled, in meters, in the current timeslice.
|
||||||
|
|||||||
Reference in New Issue
Block a user