Wind arrow now follows on every camera

Follows correctly

#story[1276] #pair[zyt10, ajm412]
This commit is contained in:
Zhi You Tan
2017-09-28 16:31:10 +13:00
parent 51078c82a0
commit d436d2a6e4
3 changed files with 57 additions and 19 deletions
@@ -215,7 +215,7 @@ public class RaceViewController extends Thread implements ImportantAnnotationDel
e.printStackTrace();
}
windCell.init(player);
windCell.init(player, raceState.getWindDirection());
windCell.setCamera(gameView.getView().getCamera());
gameView.getView().cameraProperty()
.addListener((obs, oldVal, newVal) -> windCell.setCamera(newVal));