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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user