From 5ac5761d196048046ec73e9d2700847a65ee2346 Mon Sep 17 00:00:00 2001 From: heurtet Date: Fri, 14 May 2021 13:43:28 +0200 Subject: [PATCH] plus de bugs sur le son --- core/src/sagittarius/view/ResumeScreen.java | 2 +- core/src/sagittarius/view/SettingsScreen.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/sagittarius/view/ResumeScreen.java b/core/src/sagittarius/view/ResumeScreen.java index 5c31236..568838a 100644 --- a/core/src/sagittarius/view/ResumeScreen.java +++ b/core/src/sagittarius/view/ResumeScreen.java @@ -59,7 +59,7 @@ public class ResumeScreen extends BaseScreen { super.tap(event, x, y, count, button); SagittariusGame.music.setVolume(Float.parseFloat(musicVolume.getTextField().getText())); - SagittariusGame.soundsVolume = Float.parseFloat(musicVolume.getTextField().getText()); + SagittariusGame.soundsVolume = Float.parseFloat(musicSounds.getTextField().getText()); // Deactivate music or not if (disableMusic.isChecked() && SagittariusGame.music.isPlaying()){ diff --git a/core/src/sagittarius/view/SettingsScreen.java b/core/src/sagittarius/view/SettingsScreen.java index e7f3bac..31188d7 100644 --- a/core/src/sagittarius/view/SettingsScreen.java +++ b/core/src/sagittarius/view/SettingsScreen.java @@ -63,7 +63,7 @@ public class SettingsScreen extends BaseScreen { SagittariusGame.G = Float.parseFloat(gConstField.getTextField().getText()); SagittariusGame.music.setVolume(Float.parseFloat(musicVolume.getTextField().getText())); - SagittariusGame.soundsVolume = Float.parseFloat(musicVolume.getTextField().getText()); + SagittariusGame.soundsVolume = Float.parseFloat(musicSounds.getTextField().getText()); SagittariusGame.debugMode = debugModeBox.isChecked(); // Deactivate music or not