From 8df8432f626f542837b7966bfb6f58fd01077bcd Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Mon, 20 Apr 2020 13:20:40 +0200 Subject: [PATCH] Legger til en manglende (ikke-kritisk) break; og fjerner en ubrukt importering --- .../fiasko/roborally/gamewrapper/screens/LoadingScreen.java | 5 ++--- .../java/inf112/fiasko/roborally/objects/RoboRallyGame.java | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/inf112/fiasko/roborally/gamewrapper/screens/LoadingScreen.java b/src/main/java/inf112/fiasko/roborally/gamewrapper/screens/LoadingScreen.java index ef32c74..92c957f 100644 --- a/src/main/java/inf112/fiasko/roborally/gamewrapper/screens/LoadingScreen.java +++ b/src/main/java/inf112/fiasko/roborally/gamewrapper/screens/LoadingScreen.java @@ -66,9 +66,8 @@ public class LoadingScreen extends AbstractScreen { roboRallyWrapper.setScreen(roboRallyWrapper.screenManager.getCardChoiceScreen(this.roboRallyWrapper)); break; default: - if (gameState != GameState.LOADING) { - System.out.println("Don't know what to do with " + gameState); - } + System.out.println("The loading screen doesn't know what to do with " + gameState); + break; } } diff --git a/src/main/java/inf112/fiasko/roborally/objects/RoboRallyGame.java b/src/main/java/inf112/fiasko/roborally/objects/RoboRallyGame.java index 04fbf4c..bd2e6b5 100644 --- a/src/main/java/inf112/fiasko/roborally/objects/RoboRallyGame.java +++ b/src/main/java/inf112/fiasko/roborally/objects/RoboRallyGame.java @@ -5,7 +5,6 @@ import inf112.fiasko.roborally.elementproperties.GameState; import inf112.fiasko.roborally.elementproperties.Position; import inf112.fiasko.roborally.elementproperties.RobotID; import inf112.fiasko.roborally.elementproperties.TileType; -import inf112.fiasko.roborally.networking.RoboRallyClient; import inf112.fiasko.roborally.networking.RoboRallyServer; import inf112.fiasko.roborally.networking.containers.PowerDownContainer; import inf112.fiasko.roborally.networking.containers.ProgamsContainer;