diff --git a/src/de/teamteamteam/spacescooter/screen/GamePausedScreen.java b/src/de/teamteamteam/spacescooter/screen/GamePausedScreen.java index f7c603d..fc40c13 100644 --- a/src/de/teamteamteam/spacescooter/screen/GamePausedScreen.java +++ b/src/de/teamteamteam/spacescooter/screen/GamePausedScreen.java @@ -91,7 +91,7 @@ public class GamePausedScreen extends Screen { switch (this.menuPoint) { case 0: //Removes itself from the GameScreen, so the player can continue playing. - this.parent.setOverlay(null); + this.parent.setOverlay(null, false); break; case 1: //Replaces its parents (the GameScreen) parent (the SuperScreen) overlay. diff --git a/src/de/teamteamteam/spacescooter/screen/GameScreen.java b/src/de/teamteamteam/spacescooter/screen/GameScreen.java index f1e8986..40cb763 100644 --- a/src/de/teamteamteam/spacescooter/screen/GameScreen.java +++ b/src/de/teamteamteam/spacescooter/screen/GameScreen.java @@ -92,7 +92,7 @@ public class GameScreen extends Screen { // Pass the collision handler a copy of the entity list CollisionHandler.handleCollisions(); if (Keyboard.isKeyDown(KeyEvent.VK_ESCAPE)) { - this.setOverlay(new GamePausedScreen(this)); + this.setOverlay(new GamePausedScreen(this), false); } //Go to GameOverScreen if the game is actually over.