mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
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:
@@ -420,6 +420,7 @@ public class CanvasController {
|
|||||||
*/
|
*/
|
||||||
private void findMinMaxPoint() {
|
private void findMinMaxPoint() {
|
||||||
List<Limit> sortedPoints = new ArrayList<>();
|
List<Limit> sortedPoints = new ArrayList<>();
|
||||||
|
|
||||||
for (Limit limit : ClientPacketParser.getXmlObject().getRaceXML().getCourseLimit()) {
|
for (Limit limit : ClientPacketParser.getXmlObject().getRaceXML().getCourseLimit()) {
|
||||||
sortedPoints.add(limit);
|
sortedPoints.add(limit);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public class ServerToClientThread implements Runnable {
|
|||||||
private Boolean userIdentified = false;
|
private Boolean userIdentified = false;
|
||||||
private Boolean connected = true;
|
private Boolean connected = true;
|
||||||
private Boolean updateClient = true;
|
private Boolean updateClient = true;
|
||||||
private Boolean initialisedRace = false;
|
private Boolean initialisedRace = true;
|
||||||
|
|
||||||
private Integer seqNo;
|
private Integer seqNo;
|
||||||
private Integer sourceId;
|
private Integer sourceId;
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ public class Yacht {
|
|||||||
this.country = country;
|
this.country = country;
|
||||||
this.position = "-";
|
this.position = "-";
|
||||||
this.sailIn = false;
|
this.sailIn = false;
|
||||||
this.location = new GeoPoint(0.0, 0.0);
|
this.location = new GeoPoint(57.6679590, 11.8503233);
|
||||||
this.heading = 0.0;
|
this.heading = 0.0;
|
||||||
this.velocity = 0.0;
|
this.velocity = 0.0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user