diff --git a/racevisionGame/src/main/java/shared/model/CompoundMark.java b/racevisionGame/src/main/java/shared/model/CompoundMark.java index e7c6c1af..4fa2599c 100644 --- a/racevisionGame/src/main/java/shared/model/CompoundMark.java +++ b/racevisionGame/src/main/java/shared/model/CompoundMark.java @@ -142,7 +142,7 @@ public class CompoundMark extends XMLCompoundMark{ /** * Used to find how far apart the marks that make up this gate are - * If this compound mark is only one point return base length of 250m + * If this compound mark is only one point return base length of 400m * @return the acceptable distance to round a mark */ public double getRoundingDistance(){ @@ -187,7 +187,7 @@ public class CompoundMark extends XMLCompoundMark{ } //finds the mark furthest west and east - if(this.getMark1Position().getLatitude() > this.getMark2Position().getLatitude()){ + if(this.getMark1Position().getLongitude() > this.getMark2Position().getLongitude()){ westMostMark = this.mark1; eastMostMark = this.mark2; }else{ @@ -196,7 +196,7 @@ public class CompoundMark extends XMLCompoundMark{ } //finds the mark furthest north and south - if(this.getMark1Position().getLongitude() > this.getMark2Position().getLongitude()){ + if(this.getMark1Position().getLatitude() > this.getMark2Position().getLatitude()){ northMostMark = this.mark1; southMostMark = this.mark2; }else{