Fixed first key press not working. #story[1098]

This commit is contained in:
Joseph Gardner
2017-08-14 12:41:21 +12:00
parent 0558629dc6
commit 7d4f1cd925
4 changed files with 4 additions and 9 deletions
@@ -319,12 +319,7 @@ public class MockRace extends Race {
//Checks if the current boat has finished the race or not.
boolean finish = this.isLastLeg(boat.getCurrentLeg());
if (!finish && totalElapsedMilliseconds >= updatePeriodMilliseconds && boat.isSailsOut()) {
// if (boat.getCurrentSpeed() == 0) {
// newOptimalVMG(boat);
// boat.setBearing(boat.calculateBearingToNextMarker());
// }
if (!finish && totalElapsedMilliseconds >= updatePeriodMilliseconds & boat.isSailsOut()) {
setBoatSpeed(boat);