attempt to fix bug #5597
This commit is contained in:
parent
206f3b89a2
commit
218d51064e
1 changed files with 4 additions and 4 deletions
|
@ -301,10 +301,10 @@ void play_turn(game_data& gameinfo, game_state& state_of_game,
|
|||
|
||||
//otherwise we're trying to move to a hex
|
||||
else if(selected_hex.valid() && selected_hex != hex &&
|
||||
enemy == units.end() && !current_route.steps.empty()) {
|
||||
const size_t moves =
|
||||
move_unit(&gui,map,units,teams,current_route.steps,
|
||||
&recorder,&undo_stack);
|
||||
enemy == units.end() && !current_route.steps.empty() &&
|
||||
current_route.steps.front() == selected_hex) {
|
||||
const size_t moves = move_unit(&gui,map,units,teams,
|
||||
current_route.steps,&recorder,&undo_stack);
|
||||
redo_stack.clear();
|
||||
|
||||
selected_hex = gamemap::location();
|
||||
|
|
Loading…
Add table
Reference in a new issue