try to avoid restarting the music on load game...

...if the song remains in the playlist
This commit is contained in:
Tomasz Śniatowski 2009-01-13 11:31:20 +01:00
parent ea31aa6324
commit 8365c81ef0
2 changed files with 4 additions and 2 deletions

View file

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

View file

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