Minor bug fixes (like all enemy sails being toggled in when they should be out)

#story[1274]
This commit is contained in:
Kusal Ekanayake
2017-09-20 21:07:49 +12:00
parent 307e79ecfc
commit c4a6113f6c
3 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ public class ClientYacht extends Observable {
private Integer position; private Integer position;
private Long estimateTimeAtFinish; private Long estimateTimeAtFinish;
private Boolean sailIn = false; private Boolean sailIn = true;
private Integer currentMarkSeqID = 0; private Integer currentMarkSeqID = 0;
private Long markRoundTime; private Long markRoundTime;
private Long timeTillNext; private Long timeTillNext;
@@ -569,6 +569,7 @@ public class GameView3D {
} }
public void setBoatAsPlayer (ClientYacht playerYacht) { public void setBoatAsPlayer (ClientYacht playerYacht) {
playerYacht.toggleSail();
playerBoatAnimationTimer = new AnimationTimer() { playerBoatAnimationTimer = new AnimationTimer() {
double count = 60; double count = 60;
@@ -115,7 +115,6 @@ public class BoatCustomizeController implements Initializable{
public void setCurrentBoat(String boatType) { public void setCurrentBoat(String boatType) {
Group group = new Group(); Group group = new Group();
this.currentBoat = BoatMeshType.getBoatMeshType(boatType); this.currentBoat = BoatMeshType.getBoatMeshType(boatType);
System.out.println(boatType.toString());
boatPane.setBackground(new Background(new BackgroundFill(Color.SKYBLUE, CornerRadii.EMPTY, Insets.EMPTY))); boatPane.setBackground(new Background(new BackgroundFill(Color.SKYBLUE, CornerRadii.EMPTY, Insets.EMPTY)));
boatPane.getChildren().add(group); boatPane.getChildren().add(group);
BoatModel bo = ModelFactory.boatCustomiseView(currentBoat, colorPicker.getValue()); BoatModel bo = ModelFactory.boatCustomiseView(currentBoat, colorPicker.getValue());