From 80d0c47e0c6feb2ea553ec62322e7405b0267ac1 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 10 Dec 2022 21:58:00 +0600 Subject: совсем забыл MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/src/com/ilotterytea/maxoning/screens/GameScreen.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/ilotterytea/maxoning/screens/GameScreen.java b/core/src/com/ilotterytea/maxoning/screens/GameScreen.java index 74e22fb..c6d61a0 100644 --- a/core/src/com/ilotterytea/maxoning/screens/GameScreen.java +++ b/core/src/com/ilotterytea/maxoning/screens/GameScreen.java @@ -71,7 +71,7 @@ public class GameScreen implements Screen, InputProcessor { game.assetManager.get("mus/game/shopping_spree.wav", Music.class) ); playlist.setShuffleMode(true); - playlist.next(); + if (game.prefs.getBoolean("music", true)) playlist.next(); player = sav; @@ -336,7 +336,7 @@ public class GameScreen implements Screen, InputProcessor { Gdx.gl.glClearColor(0f, 0f, 0f, 1f); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT); - if (!playlist.getPlayingNow().isPlaying()) { + if (game.prefs.getBoolean("music", true) && !playlist.getPlayingNow().isPlaying()) { playlist.next(); } -- cgit v1.2.3