fix a glitch with the ADI in top-left corner spotted by Mordante
later we need to change the values used for the null_location
This commit is contained in:
parent
3716e16659
commit
331feb9648
1 changed files with 2 additions and 2 deletions
|
@ -383,11 +383,11 @@ void game_display::draw(bool update,bool force)
|
|||
tile_stack_append(mouseover_hex_overlay_);
|
||||
|
||||
// draw the attack direction indicator
|
||||
if(*it == attack_indicator_to_) {
|
||||
if(attack_indicator_to_.valid() && *it == attack_indicator_to_) {
|
||||
const std::string dir = gamemap::location::write_direction(
|
||||
attack_indicator_to_.get_relative_dir(attack_indicator_from_));
|
||||
tile_stack_append(image::get_image("misc/attack-from-" + dir + ".png", image::UNMASKED));
|
||||
} else if (*it == attack_indicator_from_) {
|
||||
} else if (attack_indicator_from_.valid() && *it == attack_indicator_from_) {
|
||||
const std::string dir = gamemap::location::write_direction(
|
||||
attack_indicator_from_.get_relative_dir(attack_indicator_to_));
|
||||
tile_stack_append(image::get_image("misc/attack-to-" + dir + ".png", image::UNMASKED));
|
||||
|
|
Loading…
Add table
Reference in a new issue