plus de bugs sur le son

This commit is contained in:
heurtet 2021-05-14 13:43:28 +02:00
parent 0bfcf4e543
commit 5ac5761d19
2 changed files with 2 additions and 2 deletions

View file

@ -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()){

View file

@ -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