Fix for placement of invis gates and checks that boats pass through these gates

-see wiki on rounding
#story[1101]
This commit is contained in:
hba56
2017-08-13 18:11:53 +12:00
parent f90648e4ce
commit 2acc36225e
4 changed files with 54 additions and 27 deletions
@@ -158,7 +158,7 @@ public class CompoundMark {
if (mark2 != null){
return GPSCoordinate.calculateDistanceMeters(mark1.getPosition(), mark2.getPosition());
}else{
return 250.0 / Constants.NMToMetersConversion;
return 400;
}
}
@@ -34,6 +34,15 @@ public class Mark {
this.position = position;
}
/**
* Used to create marks that are not visible in the race
* @param position position of the mark
* @return the new mark
*/
public static Mark tempMark(GPSCoordinate position){
return new Mark(-1, "Hidden Mark", position);
}
/**
* Returns the name of the mark.