Issue #73: If you change controls to 'Continuously turning' before moving into game, it is not applied

- always send turning mode packet when race starts to sync the steering mode

#story[1278]
This commit is contained in:
Haoming Yin
2017-09-27 20:18:06 +13:00
parent c5d2016733
commit 22e1e57c24
3 changed files with 7 additions and 16 deletions
@@ -93,7 +93,6 @@ public class GameState implements Runnable {
private static String hostIpAddress;
private static List<Player> players;
private static Map<Integer, ServerYacht> yachts;
private static Boolean isRaceStarted;
private static GameStages currentStage;
private static MarkOrder markOrder;
private static long startTime;
@@ -119,7 +118,6 @@ public class GameState implements Runnable {
playerHasLeftFlag = false;
serverSpeedMultiplier = 1.0;
currentStage = GameStages.LOBBYING;
isRaceStarted = false;
previousUpdateTime = System.currentTimeMillis();
markOrder = new MarkOrder(); //This could be instantiated at some point with a select map?
newMessageListeners = new ArrayList<>();
@@ -178,10 +176,6 @@ public class GameState implements Runnable {
yachts.remove(yachtId);
}
public static Boolean getIsRaceStarted() {
return isRaceStarted;
}
public static GameStages getCurrentStage() {
return currentStage;
}