mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-15 09:02:30 +00:00
simplify replay_controller::update_teams
This commit is contained in:
parent
dbe107fa4b
commit
769d79a354
@ -488,14 +488,7 @@ void replay_controller::play_replay()
|
||||
|
||||
void replay_controller::update_teams()
|
||||
{
|
||||
int next_team = current_side();
|
||||
if(static_cast<size_t>(next_team) > gamestate().board_.teams().size()) {
|
||||
next_team = 1;
|
||||
}
|
||||
|
||||
gui_->set_team(vision_ == HUMAN_TEAM ? gamestate().first_human_team_ : next_team - 1, vision_ == SHOW_ALL);
|
||||
|
||||
gui_->set_playing_team(next_team - 1);
|
||||
gui_->set_team(vision_ == HUMAN_TEAM ? gamestate().first_human_team_ : current_side() - 1, vision_ == SHOW_ALL);
|
||||
gui_->invalidate_all();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user