mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-18 12:45:25 +00:00
use play_controller::player_number_ to write [snapshot]playing_team=
This commit is contained in:
parent
41e363a3fd
commit
9ac0434c1d
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user