@ -515,7 +515,7 @@ public class MockRace extends Race {
switch ( boat . getRoundingStatus ( ) ) {
case 0 : //hasn't started rounding
if ( boat . is Port Side( boat . getCurrentLeg ( ) . getEndCompoundMark ( ) . getMarkForRounding ( legBearing ) ) & &
if ( boat . is Starboard Side( boat . getCurrentLeg ( ) . getEndCompoundMark ( ) . getMarkForRounding ( legBearing ) ) & &
GPSCoordinate . passesLine ( boat . getCurrentLeg ( ) . getEndCompoundMark ( ) . getMarkForRounding ( legBearing ) . getPosition ( ) ,
roundingChecks . get ( 0 ) , boat . getCurrentPosition ( ) , legBearing ) & &
gateCheck ) {
@ -523,7 +523,7 @@ public class MockRace extends Race {
}
break ;
case 1 : //has been parallel to the mark
if ( boat . is Port Side( boat . getCurrentLeg ( ) . getEndCompoundMark ( ) . getMarkForRounding ( legBearing ) ) & &
if ( boat . is Starboard Side( boat . getCurrentLeg ( ) . getEndCompoundMark ( ) . getMarkForRounding ( legBearing ) ) & &
GPSCoordinate . passesLine ( boat . getCurrentLeg ( ) . getEndCompoundMark ( ) . getMarkForRounding ( legBearing ) . getPosition ( ) ,
roundingChecks . get ( 1 ) , boat . getCurrentPosition ( ) , Bearing . fromDegrees ( legBearing . degrees ( ) + 90 ) ) ) { //positive 90 from bearing because of starboard rounding
boat . increaseRoundingStatus ( ) ;