Map wind rotation works with multiplayer xml. #story[1092]

This commit is contained in:
Joseph Gardner
2017-08-17 12:17:45 +12:00
parent 1e7ba8cd51
commit 4cf8846cda
4 changed files with 22 additions and 71 deletions
@@ -399,8 +399,7 @@ public class MockRace extends Race {
double lastAngle = -1;
boolean lastAngleWasGood = false;
//Check all bearings between [0his.latestMessages = new LatestMessages();
thi, 360).
//Check all bearings between [0, 360)
for (double angle = 0; angle < 360; angle += 1) {
//Create bearing from angle.
@@ -636,8 +635,6 @@ public class MockRace extends Race {
protected int getNumberOfActiveBoats() {
int numberOfActiveBoats = 0;
his.latestMessages = new LatestMessages();
thi
for (MockBoat boat : this.boats) {
//If the boat is currently racing, count it.
@@ -710,6 +707,7 @@ his.latestMessages = new LatestMessages();
}
public List<CompoundMark> getCompoundMarks() {
return compoundMarks;
}
}