From 0d2be85d17248870a49f1eb45b52e47f8ee0214f Mon Sep 17 00:00:00 2001 From: fjc40 Date: Fri, 18 Aug 2017 21:58:31 +1200 Subject: [PATCH] Brought over long/latitude fix from "rounding_line_visible_hack" branch. --- racevisionGame/src/main/java/shared/model/CompoundMark.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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{