Fixed a bug where an error was caused when attempting to flip the race around the prime meridian.

All x values are now flipped horizontally if the difference between the smallest lon, e.g. -179.5 and the largest e.g. 179.5 is greater than 180.

#story[923] #bug
This commit is contained in:
cir27
2017-05-22 05:41:57 +12:00
parent 68a243725b
commit 97f1ccb6c1
+1 -1
View File
@@ -152,7 +152,7 @@ public class Race {
/** /**
* Set a boat as finished * Set a boat as finished
* @param boat The boat that has finished the race/home/cosc/student/wmu16 * @param boat The boat that has finished the race
*/ */
public void setBoatFinished(Yacht boat){ public void setBoatFinished(Yacht boat){
this.finishingOrder.add(boat); this.finishingOrder.add(boat);