Use hover-hex-enemy.png over attack targets

This commit is contained in:
Alexander van Gessel 2013-06-09 03:21:37 +02:00
parent 612f71eac9
commit 7e31d6b632

View file

@ -277,10 +277,15 @@ void game_display::draw_hex(const map_location& loc)
if( get_visible_unit(loc, (*teams_)[viewing_team()] ) != NULL ) {
hex_top_layer = LAYER_MOUSEOVER_TOP;
}
drawing_buffer_add( hex_top_layer,
loc, xpos, ypos, image::get_image("misc/hover-hex-top.png", image::SCALED_TO_HEX));
drawing_buffer_add(LAYER_MOUSEOVER_BOTTOM,
loc, xpos, ypos, image::get_image("misc/hover-hex-bottom.png", image::SCALED_TO_HEX));
if(loc == attack_indicator_dst_) {
drawing_buffer_add( hex_top_layer,
loc, xpos, ypos, image::get_image("misc/hover-hex-enemy.png", image::SCALED_TO_HEX));
} else {
drawing_buffer_add( hex_top_layer,
loc, xpos, ypos, image::get_image("misc/hover-hex-top.png", image::SCALED_TO_HEX));
drawing_buffer_add(LAYER_MOUSEOVER_BOTTOM,
loc, xpos, ypos, image::get_image("misc/hover-hex-bottom.png", image::SCALED_TO_HEX));
}
}