summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2022-09-04 03:07:36 +0600
committerilotterytea <iltsu@alright.party>2022-09-04 03:07:36 +0600
commitda19521a38d50ba1394f7eff76135ceb8da18789 (patch)
treea68bd5519e5c9f24c8f859d560505443b7aa6895 /core/src
parent5ca44b6d34e0a4f1cefd2ae3472d972b39f54004 (diff)
music in prefs is boolean now
Diffstat (limited to 'core/src')
-rw-r--r--core/src/com/ilotterytea/maxoning/screens/SplashScreen.java2
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());
}