Fixed fatal bug to do with mark arrow on boat.

This commit is contained in:
Kusal Ekanayake
2017-09-28 16:27:57 +13:00
parent ce3e08abfc
commit 27379ae96d
@@ -361,7 +361,6 @@ public class GameView3D extends GameView {
}); });
} }
playerBoat.updateMarkIndicator(scaledPoint.findScaledXY(course.get(0).getMidPoint()));
gameObjects.getChildren().addAll(wakes); gameObjects.getChildren().addAll(wakes);
gameObjects.getChildren().addAll(boatObjectGroup); gameObjects.getChildren().addAll(boatObjectGroup);
}); });
@@ -497,6 +496,7 @@ public class GameView3D extends GameView {
} }
public void setBoatAsPlayer (ClientYacht playerYacht) { public void setBoatAsPlayer (ClientYacht playerYacht) {
playerBoat.updateMarkIndicator(scaledPoint.findScaledXY(course.get(0).getMidPoint()));
playerYacht.toggleSail(); playerYacht.toggleSail();
playerBoatAnimationTimer = new AnimationTimer() { playerBoatAnimationTimer = new AnimationTimer() {