fix bug 6725 unit should be deselected before playing their attack animation
This commit is contained in:
parent
0956f0620c
commit
4e8a8f9dfe
2 changed files with 2 additions and 1 deletions
|
@ -298,7 +298,7 @@ void game_display::draw(bool update,bool force)
|
|||
image::TYPE image_type = image::SCALED_TO_HEX;
|
||||
|
||||
// We highlight hex under the mouse,
|
||||
// origin of attack or under a selected unit.
|
||||
// or under a selected unit.
|
||||
if (on_map && (*it == mouseoverHex_ || *it == attack_indicator_src_)) {
|
||||
image_type = image::BRIGHTENED;
|
||||
} else if (on_map && *it == selectedHex_) {
|
||||
|
|
|
@ -218,6 +218,7 @@ void unit_attack(
|
|||
game_display* disp = game_display::get_singleton();
|
||||
if(!disp) return;
|
||||
unit_map& units = disp->get_units();
|
||||
disp->select_hex(gamemap::location::null_location);
|
||||
const bool hide = disp->video().update_locked() || disp->fogged(a) && disp->fogged(b)
|
||||
|| preferences::show_combat() == false;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue