try to avoid restarting the music on load game...
...if the song remains in the playlist
This commit is contained in:
parent
ea31aa6324
commit
8365c81ef0
2 changed files with 4 additions and 2 deletions
|
@ -2022,7 +2022,9 @@ static int do_gameloop(int argc, char** argv)
|
|||
|
||||
statistics::fresh_stats();
|
||||
|
||||
sound::play_music_repeatedly(game_config::title_music);
|
||||
if (!game.is_loading()) {
|
||||
sound::play_music_repeatedly(game_config::title_music);
|
||||
}
|
||||
|
||||
if(game.play_test() == false) {
|
||||
return 0;
|
||||
|
|
|
@ -367,7 +367,7 @@ LEVEL_RESULT play_game(display& disp, game_state& gamestate, const config& game_
|
|||
LOG_G << "generated map\n";
|
||||
}
|
||||
|
||||
sound::play_no_music();
|
||||
sound::empty_playlist();
|
||||
|
||||
switch (io_type){
|
||||
case IO_NONE:
|
||||
|
|
Loading…
Add table
Reference in a new issue