Boats now start the race with sails out. #story[1098]

This commit is contained in:
Joseph Gardner
2017-08-10 13:25:57 +12:00
parent 20302496f0
commit d8628b4289
3 changed files with 3 additions and 3 deletions
@@ -319,7 +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 (!finish && totalElapsedMilliseconds >= updatePeriodMilliseconds && boat.isSailsOut()) {
// if (boat.getCurrentSpeed() == 0) {
// newOptimalVMG(boat);