From 4e89c6d07e68119e70145d9b89c1eaabd4a25d27 Mon Sep 17 00:00:00 2001 From: TheBigEye Date: Sun, 11 Apr 2021 21:59:53 -0300 Subject: [PATCH] Delete old code --- src/minicraft/screen/PauseDisplay.java | 2 -- src/minicraft/screen/TitleDisplay.java | 4 ---- src/minicraft/screen/WorldEditDisplay.java | 2 -- src/minicraft/screen/WorldSelectDisplay.java | 1 - 4 files changed, 9 deletions(-) diff --git a/src/minicraft/screen/PauseDisplay.java b/src/minicraft/screen/PauseDisplay.java index 0ce31313..0d061232 100644 --- a/src/minicraft/screen/PauseDisplay.java +++ b/src/minicraft/screen/PauseDisplay.java @@ -19,7 +19,6 @@ public class PauseDisplay extends Display { public PauseDisplay() { - Sound.Heart.stop(); String upString = Game.input.getMapping("cursor-up")+ Localization.getLocalized(" and ")+Game.input.getMapping("cursor-down")+Localization.getLocalized(" to Scroll"); String selectString = Game.input.getMapping("select")+Localization.getLocalized(": Choose"); @@ -104,7 +103,6 @@ public void init(Display parent) { @Override public void tick(InputHandler input) { super.tick(input); - Sound.Heart.stop(); if (input.getKey("pause").clicked) Game.exitMenu(); } diff --git a/src/minicraft/screen/TitleDisplay.java b/src/minicraft/screen/TitleDisplay.java index 67173bb2..274b30d0 100644 --- a/src/minicraft/screen/TitleDisplay.java +++ b/src/minicraft/screen/TitleDisplay.java @@ -72,8 +72,6 @@ public void init(Display parent) { super.init(null); // The TitleScreen never has a parent. Renderer.readyToRenderGameplay = false; - Sound.Heart.stop(); - if (random.nextInt(2) == 1) { Sound.Intro.loop(true); Sound.Intro2.stop(); @@ -182,8 +180,6 @@ public void tick(InputHandler input) { if (count == 0) reverse = false; } - Sound.Heart.stop(); - super.tick(input); } diff --git a/src/minicraft/screen/WorldEditDisplay.java b/src/minicraft/screen/WorldEditDisplay.java index 881c62ea..8a704fe2 100644 --- a/src/minicraft/screen/WorldEditDisplay.java +++ b/src/minicraft/screen/WorldEditDisplay.java @@ -59,8 +59,6 @@ public WorldEditDisplay(Action action, String worldName) { public void tick(InputHandler input) { super.tick(input); - Sound.Heart.stop(); - if (input.getKey("select").clicked) { // do action InputEntry entry; diff --git a/src/minicraft/screen/WorldSelectDisplay.java b/src/minicraft/screen/WorldSelectDisplay.java index b479af5c..4a109385 100644 --- a/src/minicraft/screen/WorldSelectDisplay.java +++ b/src/minicraft/screen/WorldSelectDisplay.java @@ -166,7 +166,6 @@ public void tick(InputHandler input) { break; } } - Sound.Heart.stop(); } @Override