replays: also make 'play single move' stop on end turn

previously it would excute the end turn and the next move
which made it very hard to get into the state directly
after a turn was started, epsecially in sp that often uses
side turn events this is imo desirable
This commit is contained in:
gfgtdf 2024-02-06 03:48:34 +01:00
parent 7401beb3b4
commit 5711277a02

View file

@ -167,15 +167,13 @@ void replay_controller::play_side_impl()
}
else {
REPLAY_RETURN res = do_replay(true);
if(res == REPLAY_FOUND_END_MOVE) {
stop_condition_->move_done();
}
if(controller_.is_regular_game_end()) {
return;
}
if(res == REPLAY_FOUND_END_TURN) {
return;
}
stop_condition_->move_done();
if(res == REPLAY_FOUND_INIT_TURN)
{
stop_condition_->new_side_turn(controller_.current_side(), controller_.gamestate().tod_manager_.turn());