Fixed game crash, and improved timer

- Fixed the null pointer exception that happened on slower computers
- Made the timer start counting down when the host clicks ready

Tags: #story[1109]
This commit is contained in:
Michael Rausch
2017-08-16 16:34:31 +12:00
parent 5843fc9212
commit 711c94001b
4 changed files with 33 additions and 10 deletions
@@ -96,7 +96,7 @@ public class LobbyController {
);
initialiseImageView();
timeUntilStart.setText("");
timeUntilStart.setText("Waiting For Host...");
}
/**
@@ -170,7 +170,7 @@ public class LobbyController {
public void updateRaceState(RaceState raceState){
this.raceState = raceState;
timeUntilStart.setText(raceState.getRaceTimeStr());
timeUntilStart.setText("Starting in: " + raceState.getRaceTimeStr());
}
public void disableReadyButton () {