Skip to content

Commit

Permalink
Disable menu music when autoconnecting
Browse files Browse the repository at this point in the history
People using -a probably want to get to the game faster and won't spend ages in
the menus. Disable the menu music in that case. Keep it when disconnecting from
a game.

Closes #626.
  • Loading branch information
lmoureaux committed Sep 12, 2021
1 parent bc50af4 commit c0404d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/client_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,11 @@ int client_main(int argc, char *argv[])
}

audio_real_init(sound_set_name, music_set_name, sound_plugin_name);
start_menu_music(QStringLiteral("music_menu"), NULL);
if (!auto_connect) {
// People autoconnecting won't stay in the menus for long. Avoid starting
// music that will be stopped immediately.
start_menu_music(QStringLiteral("music_menu"), NULL);
}

editor_init();

Expand Down

0 comments on commit c0404d5

Please sign in to comment.