mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
(fix) Set the music and sfx volumes immediately after initialising the
audio frontend. Fixes #373
This commit is contained in:
@ -42,12 +42,10 @@ impl PlayState for MainMenuState {
|
||||
let mut client_init: Option<ClientInit> = None;
|
||||
|
||||
// Kick off title music
|
||||
if None == self.title_music_channel {
|
||||
self.title_music_channel = Some(
|
||||
global_state
|
||||
.audio
|
||||
.play_music("voxygen.audio.soundtrack.veloren_title_tune-3"),
|
||||
)
|
||||
if self.title_music_channel.is_none() && global_state.settings.audio.audio_on {
|
||||
self.title_music_channel = global_state
|
||||
.audio
|
||||
.play_music("voxygen.audio.soundtrack.veloren_title_tune-3");
|
||||
}
|
||||
|
||||
// Reset singleplayer server if it was running already
|
||||
|
Reference in New Issue
Block a user