Replay: Don't disable the "Point of view" button after reset

Fixes #3107
This commit is contained in:
josteph 2018-06-23 17:33:14 +00:00 committed by Jyrki Vesterinen
parent cc2366ca0f
commit 29dd57bbad

View file

@ -209,7 +209,9 @@ void playsingle_controller::play_scenario_main_loop()
resources::gameboard->teams()[i].set_local(local_players[i]);
}
play_scenario_init();
replay_.reset(new replay_controller(*this, false, ex.level, [this](){ on_replay_end(false); } ));
if (replay_ == nullptr) {
replay_.reset(new replay_controller(*this, false, ex.level, [this](){ on_replay_end(false); } ));
}
if(ex.start_replay) {
replay_->play_replay();
}