Fix an old 1.2 bug.

At the end of a move+attack, shroud is cleared on map but the minimap
is not refreshed (need another move to trigger it)

There is also another old bug, we clear shroud only in the attacker
survive the attack. I think it need to be done directly when
confirming the attack.

But it's a more invasive change (sighted event in the middle of the
attack action), I will check it later.
This commit is contained in:
Ali El Gariani 2008-04-22 19:41:23 +00:00
parent 0bb8f7e43b
commit ab47b785a8

View file

@ -1175,6 +1175,7 @@ void mouse_handler::left_click(const SDL_MouseButtonEvent& event, const bool bro
if (clear_shroud(*gui_, map_, units_, teams_, team_num_ - 1)||!teams_[team_num_-1].auto_shroud_updates()){
clear_undo_stack();
gui_->invalidate_all();
gui_->recalculate_minimap();
gui_->draw();
//some new part of map discovered
for(unit_map::const_iterator u = units_.begin(); u != units_.end(); ++u) {