Race now has a 10 minute delay before starting (which is increased whenever it falls below 5 minutes).

The start button (visible to host) starts the race in whatever the prepatory time is.
#story[1352]
This commit is contained in:
fjc40
2017-09-24 22:15:11 +13:00
parent da901d6e0c
commit 46192af628
8 changed files with 62 additions and 23 deletions
@@ -270,7 +270,6 @@ public class InGameLobbyController extends Controller {
}
//If the race has reached the preparatory phase, or has started...
if (raceStatus == RaceStatusEnum.PREPARATORY || raceStatus == RaceStatusEnum.STARTED) {
//Stop this timer.
@@ -360,7 +359,7 @@ public class InGameLobbyController extends Controller {
* Start button pressed. Currently only prints out start
*/
public void startBtnPressed(){
App.game.getRaceLogic().getRace().startRace(App.game.getRaceLogic().getRace().getRacePreparatoryTime());
App.game.getRaceLogic().getRace().startRace(App.game.getRaceLogic().getRace().getRacePreparatoryTime(), true);
}
public void joinSpecPressed(){