Suppress movement feedback when the move is not animated.
Fixes bug #19855.
This commit is contained in:
parent
45c0d0fcec
commit
ae76295f70
2 changed files with 5 additions and 2 deletions
|
@ -3745,7 +3745,8 @@ size_t move_unit(move_unit_spectator *move_spectator,
|
|||
// (This is broken into pieces so that the individual functions are more manageble.)
|
||||
mover.try_actual_movement(show_move);
|
||||
mover.post_move(undo_stack);
|
||||
mover.feedback();
|
||||
if ( show_move )
|
||||
mover.feedback();
|
||||
|
||||
// Set return values.
|
||||
if ( units_sighted_result )
|
||||
|
|
|
@ -1053,7 +1053,9 @@ bool do_replay_handle(int side_num, const std::string &do_untill)
|
|||
continue;
|
||||
}
|
||||
|
||||
bool show_move = preferences::show_ai_moves() || !(current_team.is_ai() || current_team.is_network_ai());
|
||||
bool show_move = !get_replay_source().is_skipping();
|
||||
if ( current_team.is_ai() || current_team.is_network_ai() )
|
||||
show_move = show_move && preferences::show_ai_moves();
|
||||
::move_unit(NULL, steps, NULL, NULL, show_move, NULL, true, true, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue