Remove playing of team-specific music: requested by Ivanovic

This commit is contained in:
Rusty Russell 2006-03-12 11:17:42 +00:00
parent 29956f628d
commit 143ed48519

View file

@ -457,16 +457,6 @@ LEVEL_RESULT play_level(const game_data& gameinfo, const config& game_config,
LOG_NG << "result of replay: " << (replaying?"true":"false") << "\n";
}
if(!replaying && team_it->music().empty() == false &&
(teams[gui.viewing_team()].knows_about_team(player_number-1) || teams[gui.viewing_team()].has_seen(player_number-1))) {
LOG_NG << "playing music: '" << team_it->music() << "'\n";
sound::play_music_repeatedly(team_it->music());
} else if(!replaying && team_it->music().empty() == false){
LOG_NG << "playing music: '" << game_config::anonymous_music<< "'\n";
sound::play_music_repeatedly(game_config::anonymous_music);
}
// else leave old music playing, it's a scenario specific music
//goto this label if the type of a team (human/ai/networked) has changed mid-turn
redo_turn: