Fixed map glitch when race starts, and race XML bug

- Race XML wasn't being sent to clients, this was causing a null ptr exception
- Boat location was being set to an invalid lat/lng

Tags: #story[1047]
This commit is contained in:
Michael Rausch
2017-07-23 18:20:13 +12:00
parent ed2a22b573
commit 8b8b6e4afa
3 changed files with 3 additions and 2 deletions
@@ -420,6 +420,7 @@ public class CanvasController {
*/
private void findMinMaxPoint() {
List<Limit> sortedPoints = new ArrayList<>();
for (Limit limit : ClientPacketParser.getXmlObject().getRaceXML().getCourseLimit()) {
sortedPoints.add(limit);
}
@@ -45,7 +45,7 @@ public class ServerToClientThread implements Runnable {
private Boolean userIdentified = false;
private Boolean connected = true;
private Boolean updateClient = true;
private Boolean initialisedRace = false;
private Boolean initialisedRace = true;
private Integer seqNo;
private Integer sourceId;
+1 -1
View File
@@ -108,7 +108,7 @@ public class Yacht {
this.country = country;
this.position = "-";
this.sailIn = false;
this.location = new GeoPoint(0.0, 0.0);
this.location = new GeoPoint(57.6679590, 11.8503233);
this.heading = 0.0;
this.velocity = 0.0;
}