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:
Chris Beck 2014-04-16 20:07:57 -04:00
parent f5c4ee5690
commit 39ea04fa17

View File

@ -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);