diff options
| author | ilotterytea <iltsu@alright.party> | 2022-09-04 03:07:36 +0600 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2022-09-04 03:07:36 +0600 |
| commit | da19521a38d50ba1394f7eff76135ceb8da18789 (patch) | |
| tree | a68bd5519e5c9f24c8f859d560505443b7aa6895 | |
| parent | 5ca44b6d34e0a4f1cefd2ae3472d972b39f54004 (diff) | |
music in prefs is boolean now
| -rw-r--r-- | core/src/com/ilotterytea/maxoning/screens/SplashScreen.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/com/ilotterytea/maxoning/screens/SplashScreen.java b/core/src/com/ilotterytea/maxoning/screens/SplashScreen.java index eb067cd..9eac50d 100644 --- a/core/src/com/ilotterytea/maxoning/screens/SplashScreen.java +++ b/core/src/com/ilotterytea/maxoning/screens/SplashScreen.java @@ -112,7 +112,7 @@ public class SplashScreen implements InputProcessor, Screen { } @Override public void show() { - introMusic.setVolume(game.prefs.getFloat("music", 0.5f)); + introMusic.setVolume((game.prefs.getBoolean("music", true)) ? 1f : 0f); introMusic.play(); render(Gdx.graphics.getDeltaTime()); } |
