mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 19:57:44 +00:00
fixup replay controller next side button
the replay controller `play next side` function was bugged because it didn't check if the next side was empty, the way that the other play controllers do. the fix is to make sure to repeat the process while we are still on an empty side. this fixes bug #21025
This commit is contained in:
parent
f5c4ee5690
commit
39ea04fa17
@ -334,6 +334,9 @@ void replay_controller::replay_next_side(){
|
||||
replay_ui_playback_should_start();
|
||||
|
||||
play_side(player_number_ - 1, false);
|
||||
while (current_team().is_empty()) {
|
||||
play_side(player_number_ - 1, false);
|
||||
}
|
||||
|
||||
if (!skip_replay_ || !is_playing_) {
|
||||
gui_->scroll_to_leader(units_, player_number_,game_display::ONSCREEN,false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user