Remove 2 useless invalidate_all() before and after starting a fight.
Probably also redundant because the attack dialog seems to cause a full redraw
This commit is contained in:
parent
c6aeccef42
commit
a89f12af92
1 changed files with 1 additions and 3 deletions
|
@ -1390,7 +1390,6 @@ bool mouse_handler::attack_enemy_(unit_map::iterator attacker, unit_map::iterato
|
|||
gui_->clear_attack_indicator();
|
||||
gui_->unhighlight_reach();
|
||||
|
||||
gui_->invalidate_all();
|
||||
gui_->draw();
|
||||
|
||||
const bool defender_human = teams_[defender->second.side()-1].is_human();
|
||||
|
@ -1419,8 +1418,7 @@ bool mouse_handler::attack_enemy_(unit_map::iterator attacker, unit_map::iterato
|
|||
|
||||
check_victory(units_,teams_,game_state_);
|
||||
|
||||
gui_->invalidate_all();
|
||||
gui_->draw(); //clear the screen
|
||||
gui_->draw();
|
||||
|
||||
return true;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue