use play_controller::player_number_ to write [snapshot]playing_team=

This commit is contained in:
gfgtdf 2015-09-07 22:00:32 +02:00
parent 41e363a3fd
commit 9ac0434c1d

View File

@ -466,11 +466,12 @@ config play_controller::to_config() const
//Write the soundsources.
soundsources_manager_->write_sourcespecs(cfg);
if(resources::gamedata->phase() == game_data::PLAY) {
cfg["playing_team"] = player_number_ - 1;
}
if(gui_.get() != NULL) {
if(resources::gamedata->phase() == game_data::PLAY) {
cfg["playing_team"] = gui_->playing_team();
}
gui_->labels().write(cfg);
sound::write_music_play_list(cfg);
}