made advancement of units on a remote machine to the machine...

...commands are being executed on random
This commit is contained in:
Dave White 2003-11-06 17:24:43 +00:00
parent 8ba5f99dc8
commit 0a0019e419

View file

@ -422,13 +422,15 @@ void turn_info::left_click(const SDL_MouseButtonEvent& event)
gui_.invalidate_all();
gui_.draw();
const bool defender_human = teams_[enemy->second.side()-1].is_human();
recorder.add_attack(selected_hex_,hex,res);
attack(gui_,map_,selected_hex_,hex,res,units_,
status_,gameinfo_,true);
dialogs::advance_unit(gameinfo_,units_,selected_hex_,gui_);
dialogs::advance_unit(gameinfo_,units_,hex,gui_);
dialogs::advance_unit(gameinfo_,units_,hex,gui_,!defender_human);
selected_hex_ = gamemap::location();
current_route_.steps.clear();